aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--discord/permissions.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/discord/permissions.py b/discord/permissions.py
index 0a4e9438..68d2a496 100644
--- a/discord/permissions.py
+++ b/discord/permissions.py
@@ -403,9 +403,13 @@ class Permissions(BaseFlags):
""":class:`bool`: Returns ``True`` if a user can create, edit, or delete emojis."""
return 1 << 30
- # 1 unused
+ @flag_value
+ def use_slash_commands(self):
+ """:class:`bool`: Returns ``True`` if a user can use slash commands.
- # after these 32 bits, there's 21 more unused ones technically
+ .. versionadded:: 1.7
+ """
+ return 1 << 31
def augment_from_permissions(cls):
cls.VALID_NAMES = set(Permissions.VALID_FLAGS)