diff options
| author | Rapptz <[email protected]> | 2017-05-04 04:26:11 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2017-05-04 04:35:02 -0400 |
| commit | 86bfcdd1292882fc29346c71edd7177f2cf7b736 (patch) | |
| tree | a16cd0971ea6ef4e524554bbf371cc3323e69d7c /docs | |
| parent | Explicitly close UDP sockets when re-creating them. (diff) | |
| download | discord.py-86bfcdd1292882fc29346c71edd7177f2cf7b736.tar.xz discord.py-86bfcdd1292882fc29346c71edd7177f2cf7b736.zip | |
Add support for message delete audit log action type.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/api.rst | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/docs/api.rst b/docs/api.rst index 509c10df..ae8ba412 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -1082,6 +1082,21 @@ All enumerations are subclasses of `enum`_. - :attr:`~AuditLogDiff.name` + .. attribute:: message_delete + + A message was deleted by a moderator. Note that this + only triggers if the message was deleted by either bulk delete + or deletion by someone other than the author. + + When this is the action, the type of :attr:`~AuditLogEntry.target` is + the :class:`Member` or :class:`User` who had their message deleted. + + When this is the action, the type of :attr:`~AuditLogEntry.extra` is + set to an unspecified proxy object with two attributes: + + - ``count``: An integer specifying how many messages were deleted. + - ``channel``: A :class:`TextChannel` or :class:`Object` with the channel ID where the message got deleted. + .. class:: AuditLogActionCategory |