aboutsummaryrefslogtreecommitdiff
path: root/discord/http.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2016-06-15 20:49:18 -0400
committerRapptz <[email protected]>2016-06-15 20:56:43 -0400
commit2ebc0ab21889a6adb96fb4711d4acc6c3cac67fb (patch)
tree1fb53ca2c6faec0d409a1bca1fa2cfe64abbd932 /discord/http.py
parentThe name is required in Client.edit_channel so add it if it is missing. (diff)
downloaddiscord.py-2ebc0ab21889a6adb96fb4711d4acc6c3cac67fb.tar.xz
discord.py-2ebc0ab21889a6adb96fb4711d4acc6c3cac67fb.zip
Don't assume that any shared fields are optional in Client.edit_channel.
Thanks Jake and night.
Diffstat (limited to 'discord/http.py')
-rw-r--r--discord/http.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/http.py b/discord/http.py
index da301f8b..0ff3dbfc 100644
--- a/discord/http.py
+++ b/discord/http.py
@@ -339,7 +339,7 @@ class HTTPClient:
def edit_channel(self, channel_id, **options):
url = '{0.CHANNELS}/{1}'.format(self, channel_id)
- valid_keys = ('name', 'topic', 'bitrate', 'user_limit')
+ valid_keys = ('name', 'topic', 'bitrate', 'user_limit', 'position')
payload = {
k: v for k, v in options.items() if k in valid_keys
}