diff options
| author | Rapptz <[email protected]> | 2018-09-14 22:52:39 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2018-09-14 22:55:29 -0400 |
| commit | 0352c80a179d0ae0cd03b05725cfbb68d51e847f (patch) | |
| tree | 9259ff6a71a2cd870db7347445a6067ebd9941ca /discord/abc.py | |
| parent | Removed inaccurate note on emoji.py (diff) | |
| download | discord.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/abc.py')
| -rw-r--r-- | discord/abc.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/discord/abc.py b/discord/abc.py index 365fcebf..0ca11452 100644 --- a/discord/abc.py +++ b/discord/abc.py @@ -231,6 +231,11 @@ class GuildChannel: else: parent_id = parent and parent.id + try: + options['rate_limit_per_user'] = options.pop('slowmode_delay') + except KeyError: + pass + lock_permissions = options.pop('sync_permissions', False) try: |