diff options
| -rw-r--r-- | src/model/permissions.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/model/permissions.rs b/src/model/permissions.rs index c2b339e..49a5069 100644 --- a/src/model/permissions.rs +++ b/src/model/permissions.rs @@ -251,6 +251,14 @@ impl Permissions { } /// Shorthand for checking that the set of permissions contains the + /// [Add Reactions] permission. + /// + /// [Add Reactions]: constant.ADD_REACTIONS.html + pub fn add_reactions(&self) -> bool { + self.contains(self::ADD_REACTIONS) + } + + /// Shorthand for checking that the set of permissions contains the /// [Administrator] permission. /// /// [Administrator]: constant.ADMINISTRATOR.html @@ -451,6 +459,14 @@ impl Permissions { } /// Shorthand for checking that the set of permissions contains the + /// [Use External Emojis] permission. + /// + /// [Use External Emojis]: constant.USE_EXTERNAL_EMOJIS.html + pub fn use_external_emojis(&self) -> bool { + self.contains(self::USE_EXTERNAL_EMOJIS) + } + + /// Shorthand for checking that the set of permissions contains the /// [Use VAD] permission. /// /// [Use VAD]: constant.USE_VAD.html |