Implement voice region changing for voice channels

This commit is contained in:
Tarek authored and GitHub committed 2021-04-01 03:49:45 -04:00
1 parent 3576e2ee01
commit 6524869ddd
4 files changed
+34 -5

No files matched your search

+7
View File
@@ -844,6 +844,13 @@ class Guild(Hashable):
except KeyError:
pass
try:
rtc_region = options.pop('rtc_region')
except KeyError:
pass
else:
options['rtc_region'] = None if rtc_region is None else str(rtc_region)
parent_id = category.id if category else None
return self._state.http.create_channel(self.id, channel_type.value, name=name, parent_id=parent_id,
permission_overwrites=perms, **options)