aboutsummaryrefslogtreecommitdiff
path: root/discord/enums.py
diff options
context:
space:
mode:
authorz03h <[email protected]>2021-04-17 05:10:41 -0700
committerGitHub <[email protected]>2021-04-17 08:10:41 -0400
commit304229071f4128c91ceeff7a6727fe2c83568b98 (patch)
tree68b3a25e562c900988a58bee69491614b6e35f30 /discord/enums.py
parentRefactor save() and read() into AssetMixin (diff)
downloaddiscord.py-304229071f4128c91ceeff7a6727fe2c83568b98.tar.xz
discord.py-304229071f4128c91ceeff7a6727fe2c83568b98.zip
Add VoiceChannel.video_quality_mode
Diffstat (limited to 'discord/enums.py')
-rw-r--r--discord/enums.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/discord/enums.py b/discord/enums.py
index b83001da..c2ccb037 100644
--- a/discord/enums.py
+++ b/discord/enums.py
@@ -46,6 +46,7 @@ __all__ = (
'ExpireBehaviour',
'ExpireBehavior',
'StickerType',
+ 'VideoQualityMode',
)
def _create_value_cls(name):
@@ -428,6 +429,13 @@ class InteractionType(Enum):
ping = 1
application_command = 2
+class VideoQualityMode(Enum):
+ auto = 1
+ full = 2
+
+ def __int__(self):
+ return self.value
+
T = TypeVar('T')
def create_unknown_value(cls: Type[T], val: Any) -> T: