aboutsummaryrefslogtreecommitdiff
path: root/discord/client.py
diff options
context:
space:
mode:
Diffstat (limited to 'discord/client.py')
-rw-r--r--discord/client.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/discord/client.py b/discord/client.py
index c725da91..d786cca4 100644
--- a/discord/client.py
+++ b/discord/client.py
@@ -1522,8 +1522,10 @@ class Client:
Editing the channel failed.
"""
- if 'name' not in options:
- options['name'] = channel.name
+ keys = ('name', 'topic', 'position')
+ for key in keys:
+ if key not in options:
+ options[key] = getattr(channel, key)
yield from self.http.edit_channel(channel.id, **options)