mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-08 10:53:10 +00:00
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:
@ -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:
|
||||
|
Reference in New Issue
Block a user