aboutsummaryrefslogtreecommitdiff
path: root/discord/enums.py
diff options
context:
space:
mode:
authorNadir Chowdhury <[email protected]>2021-05-30 18:51:52 +0100
committerGitHub <[email protected]>2021-05-30 13:51:52 -0400
commit9f98a9a87fa1f2cc2702b5dc536178a018a631eb (patch)
tree2eafaf9d8b0c9b791396e1bf953c4adc4b6d8282 /discord/enums.py
parentFix potential KeyError when removing views (diff)
downloaddiscord.py-9f98a9a87fa1f2cc2702b5dc536178a018a631eb.tar.xz
discord.py-9f98a9a87fa1f2cc2702b5dc536178a018a631eb.zip
Implement StageInstance
Diffstat (limited to 'discord/enums.py')
-rw-r--r--discord/enums.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/discord/enums.py b/discord/enums.py
index f34d135c..897f9602 100644
--- a/discord/enums.py
+++ b/discord/enums.py
@@ -50,6 +50,7 @@ __all__ = (
'VideoQualityMode',
'ComponentType',
'ButtonStyle',
+ 'StagePrivacyLevel',
)
def _create_value_cls(name):
@@ -480,6 +481,11 @@ class ButtonStyle(Enum):
def __int__(self):
return self.value
+class StagePrivacyLevel(Enum):
+ public = 1
+ closed = 2
+ guild_only = 2
+
T = TypeVar('T')
def create_unknown_value(cls: Type[T], val: Any) -> T: