diff options
| author | z03h <[email protected]> | 2021-04-17 05:10:41 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-04-17 08:10:41 -0400 |
| commit | 304229071f4128c91ceeff7a6727fe2c83568b98 (patch) | |
| tree | 68b3a25e562c900988a58bee69491614b6e35f30 /discord/abc.py | |
| parent | Refactor save() and read() into AssetMixin (diff) | |
| download | discord.py-304229071f4128c91ceeff7a6727fe2c83568b98.tar.xz discord.py-304229071f4128c91ceeff7a6727fe2c83568b98.zip | |
Add VoiceChannel.video_quality_mode
Diffstat (limited to 'discord/abc.py')
| -rw-r--r-- | discord/abc.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/discord/abc.py b/discord/abc.py index 73376b7c..560f70e7 100644 --- a/discord/abc.py +++ b/discord/abc.py @@ -31,7 +31,7 @@ from typing import TYPE_CHECKING, Optional, Protocol, runtime_checkable from .iterators import HistoryIterator from .context_managers import Typing -from .enums import ChannelType +from .enums import ChannelType, VideoQualityMode from .errors import InvalidArgument, ClientException from .mentions import AllowedMentions from .permissions import PermissionOverwrite, Permissions @@ -266,6 +266,13 @@ class GuildChannel(Protocol): else: options['rtc_region'] = None if rtc_region is None else str(rtc_region) + try: + video_quality_mode = options.pop('video_quality_mode') + except KeyError: + pass + else: + options['video_quality_mode'] = int(video_quality_mode) + lock_permissions = options.pop('sync_permissions', False) try: |