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

This commit is contained in:
Rapptz 2016-06-15 20:31:13 -04:00
parent fa0c98da4c
commit eeba4963f3

View File

@ -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