Browse Source

The name is required in Client.edit_channel so add it if it is missing.

pull/146/merge
Rapptz 9 years ago
parent
commit
eeba4963f3
  1. 3
      discord/client.py

3
discord/client.py

@ -1522,6 +1522,9 @@ class Client:
Editing the channel failed.
"""
if 'name' not in options:
options['name'] = channel.name
yield from self.http.edit_channel(channel.id, **options)
@asyncio.coroutine

Loading…
Cancel
Save