Add support for message delete audit log action type.

This commit is contained in:
Rapptz
2017-05-04 04:26:11 -04:00
parent 663315f7ac
commit 86bfcdd129
3 changed files with 29 additions and 1 deletions

View File

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