aboutsummaryrefslogtreecommitdiff
path: root/discord/http.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2018-09-14 22:52:39 -0400
committerRapptz <[email protected]>2018-09-14 22:55:29 -0400
commit0352c80a179d0ae0cd03b05725cfbb68d51e847f (patch)
tree9259ff6a71a2cd870db7347445a6067ebd9941ca /discord/http.py
parentRemoved inaccurate note on emoji.py (diff)
downloaddiscord.py-0352c80a179d0ae0cd03b05725cfbb68d51e847f.tar.xz
discord.py-0352c80a179d0ae0cd03b05725cfbb68d51e847f.zip
Add support for Discord's slow mode.
Adds the following: * `slowmode_delay` for `TextChannel.edit` * `slowmode_delay` attribute for `TextChannel`
Diffstat (limited to 'discord/http.py')
-rw-r--r--discord/http.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/discord/http.py b/discord/http.py
index 2d5c67fb..6c2b548c 100644
--- a/discord/http.py
+++ b/discord/http.py
@@ -495,7 +495,8 @@ class HTTPClient:
def edit_channel(self, channel_id, *, reason=None, **options):
r = Route('PATCH', '/channels/{channel_id}', channel_id=channel_id)
- valid_keys = ('name', 'parent_id', 'topic', 'bitrate', 'nsfw', 'user_limit', 'position', 'permission_overwrites')
+ valid_keys = ('name', 'parent_id', 'topic', 'bitrate', 'nsfw',
+ 'user_limit', 'position', 'permission_overwrites', 'rate_limit_per_user')
payload = {
k: v for k, v in options.items() if k in valid_keys
}