From d560a924bc0dd6d9e050dd5dae2f0e359bb1cfdd Mon Sep 17 00:00:00 2001 From: Abitofevrything <54505189+abitofevrything@users.noreply.github.com> Date: Sun, 14 Apr 2024 20:40:06 +0200 Subject: [PATCH] Add getter for everyone role in a guild (#36) --- lib/src/extensions/managers/role_manager.dart | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 lib/src/extensions/managers/role_manager.dart diff --git a/lib/src/extensions/managers/role_manager.dart b/lib/src/extensions/managers/role_manager.dart new file mode 100644 index 0000000..b38bdeb --- /dev/null +++ b/lib/src/extensions/managers/role_manager.dart @@ -0,0 +1,6 @@ +import 'package:nyxx/nyxx.dart'; + +extension RoleManagerExtensions on RoleManager { + /// The role representing `@everyone` in this guild. + PartialRole get everyone => this[guildId]; +}