aboutsummaryrefslogtreecommitdiff
path: root/discord/permissions.py
diff options
context:
space:
mode:
authorNadir Chowdhury <[email protected]>2021-04-04 03:43:41 +0100
committerGitHub <[email protected]>2021-04-03 22:43:41 -0400
commit1b2688518eb5c229a7e8bee089d0c505cfae4018 (patch)
tree68a09f131d098b59698c9560dd94c8de54b9c2be /discord/permissions.py
parent[docs] Add rtc_region parameter for Guild.create_voice_channel (diff)
downloaddiscord.py-1b2688518eb5c229a7e8bee089d0c505cfae4018.tar.xz
discord.py-1b2688518eb5c229a7e8bee089d0c505cfae4018.zip
Implement StageChannel and related methods
Diffstat (limited to 'discord/permissions.py')
-rw-r--r--discord/permissions.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/discord/permissions.py b/discord/permissions.py
index 1b0dd5a2..3fd0dacf 100644
--- a/discord/permissions.py
+++ b/discord/permissions.py
@@ -214,6 +214,15 @@ class Permissions(BaseFlags):
return cls(1 << 32)
@classmethod
+ def stage_moderator(cls):
+ """A factory method that creates a :class:`Permissions` with all
+ "Stage Moderator" permissions from the official Discord UI set to ``True``.
+
+ .. versionadded:: 1.7
+ """
+ return cls(0b100000001010000000000000000000000)
+
+ @classmethod
def advanced(cls):
"""A factory method that creates a :class:`Permissions` with all
"Advanced" permissions from the official Discord UI set to ``True``.
@@ -222,7 +231,6 @@ class Permissions(BaseFlags):
"""
return cls(1 << 3)
-
def update(self, **kwargs):
r"""Bulk updates this permission object.