diff options
| author | Rapptz <[email protected]> | 2016-09-09 19:24:21 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2016-09-09 19:24:21 -0400 |
| commit | bca6b2a133f5f6a23379e2d8c1ce91b998baccd4 (patch) | |
| tree | 094bbfc46464c096210d4f990ae2f482db6ce12c | |
| parent | Add new EU Central and EU West server regions. (diff) | |
| download | discord.py-bca6b2a133f5f6a23379e2d8c1ce91b998baccd4.tar.xz discord.py-bca6b2a133f5f6a23379e2d8c1ce91b998baccd4.zip | |
Fix bug that disallowed ServerRegion from being used in edit_server.
| -rw-r--r-- | discord/client.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/discord/client.py b/discord/client.py index 9fdc8cf2..93679244 100644 --- a/discord/client.py +++ b/discord/client.py @@ -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 |