Add support for Discord's slow mode.

Adds the following:

* `slowmode_delay` for `TextChannel.edit`
* `slowmode_delay` attribute for `TextChannel`
This commit is contained in:
Rapptz
2018-09-14 22:52:39 -04:00
parent 21309c2d72
commit 0352c80a17
3 changed files with 24 additions and 8 deletions

View File

@ -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: