mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-22 00:34:06 +00:00
Fix bug that disallowed ServerRegion from being used in edit_server.
This commit is contained in:
parent
8384edb061
commit
bca6b2a133
@ -1965,6 +1965,9 @@ class Client:
|
||||
|
||||
fields['owner_id'] = fields['owner'].id
|
||||
|
||||
if 'region' in fields:
|
||||
fields['region'] = str(fields['region'])
|
||||
|
||||
yield from self.http.edit_server(server.id, **fields)
|
||||
|
||||
@asyncio.coroutine
|
||||
|
Loading…
x
Reference in New Issue
Block a user