From eeba4963f33fc1b09f3aee0b3fd1a93828ee29b1 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Wed, 15 Jun 2016 20:31:13 -0400 Subject: [PATCH] The name is required in Client.edit_channel so add it if it is missing. --- discord/client.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/discord/client.py b/discord/client.py index d77671801..c725da915 100644 --- a/discord/client.py +++ b/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