Implement voice region changing for voice channels
This commit is contained in:
@ -584,11 +584,10 @@ class HTTPClient:
|
||||
r = Route('PATCH', '/channels/{channel_id}', channel_id=channel_id)
|
||||
valid_keys = ('name', 'parent_id', 'topic', 'bitrate', 'nsfw',
|
||||
'user_limit', 'position', 'permission_overwrites', 'rate_limit_per_user',
|
||||
'type')
|
||||
'type', 'rtc_region')
|
||||
payload = {
|
||||
k: v for k, v in options.items() if k in valid_keys
|
||||
}
|
||||
|
||||
return self.request(r, reason=reason, json=payload)
|
||||
|
||||
def bulk_channel_update(self, guild_id, data, *, reason=None):
|
||||
@ -601,7 +600,8 @@ class HTTPClient:
|
||||
}
|
||||
|
||||
valid_keys = ('name', 'parent_id', 'topic', 'bitrate', 'nsfw',
|
||||
'user_limit', 'position', 'permission_overwrites', 'rate_limit_per_user')
|
||||
'user_limit', 'position', 'permission_overwrites', 'rate_limit_per_user',
|
||||
'rtc_region')
|
||||
payload.update({
|
||||
k: v for k, v in options.items() if k in valid_keys and v is not None
|
||||
})
|
||||
|
Reference in New Issue
Block a user