From d65f2f587a57a37ab9609f3ee45fe426567a1949 Mon Sep 17 00:00:00 2001 From: Abitofevrything Date: Sun, 14 Apr 2024 19:10:26 +0100 Subject: [PATCH] Add getter for everyone role in a guild --- 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]; +}