From a8f44174bafed3989ec2959a62b89006f4a9e9a1 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Thu, 18 Feb 2021 07:28:37 -0500 Subject: [PATCH] Add Permissions.use_slash_commands --- discord/permissions.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/discord/permissions.py b/discord/permissions.py index 0a4e94387..68d2a4961 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)