Implement voice region changing for voice channels

This commit is contained in:
Tarek
2021-04-01 09:49:45 +02:00
committed by GitHub
parent 3576e2ee01
commit 6524869ddd
4 changed files with 34 additions and 5 deletions

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)