mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-07-21 10:26:47 +00:00
Add support for AuditLogDiff.slowmode_delay.
This commit is contained in:
parent
45af0c83de
commit
836ae73040
@ -111,6 +111,7 @@ class AuditLogChanges:
|
|||||||
'splash_hash': ('splash', None),
|
'splash_hash': ('splash', None),
|
||||||
'icon_hash': ('icon', None),
|
'icon_hash': ('icon', None),
|
||||||
'avatar_hash': ('avatar', None),
|
'avatar_hash': ('avatar', None),
|
||||||
|
'rate_limit_per_user': ('slowmode_delay', None),
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, entry, data):
|
def __init__(self, entry, data):
|
||||||
|
@ -1741,6 +1741,13 @@ this goal, it must make use of a couple of data classes that aid in this goal.
|
|||||||
|
|
||||||
See also :attr:`User.avatar`.
|
See also :attr:`User.avatar`.
|
||||||
|
|
||||||
|
.. attribute:: slowmode_delay
|
||||||
|
|
||||||
|
:class:`int` – The number of seconds members have to wait before
|
||||||
|
sending another message in the channel.
|
||||||
|
|
||||||
|
See also :attr:`TextChannel.slowmode_delay`.
|
||||||
|
|
||||||
.. this is currently missing the following keys: reason and application_id
|
.. this is currently missing the following keys: reason and application_id
|
||||||
I'm not sure how to about porting these
|
I'm not sure how to about porting these
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user