Add additional audit log types for automod

This commit is contained in:
Josh
2022-08-28 16:08:05 +10:00
committed by GitHub
parent 3588793965
commit c2f9e0be43
3 changed files with 46 additions and 2 deletions

View File

@ -2678,6 +2678,42 @@ of :class:`enum.Enum`.
.. versionadded:: 2.0
.. attribute:: automod_flag_message
An automod rule flagged a message.
When this is the action, the type of :attr:`~AuditLogEntry.target` is
a :class:`Member` with the ID of the person who triggered the automod rule.
When this is the action, the type of :attr:`~AuditLogEntry.extra` is
set to an unspecified proxy object with 3 attributes:
- ``automod_rule_name``: The name of the automod rule that was triggered.
- ``automod_rule_trigger``: A :class:`AutoModRuleTriggerType` representation of the rule type that was triggered.
- ``channel``: The channel in which the automod rule was triggered.
When this is the action, :attr:`AuditLogEntry.changes` is empty.
.. versionadded:: 2.1
.. attribute:: automod_timeout_member
An automod rule timed-out a member.
When this is the action, the type of :attr:`~AuditLogEntry.target` is
a :class:`Member` with the ID of the person who triggered the automod rule.
When this is the action, the type of :attr:`~AuditLogEntry.extra` is
set to an unspecified proxy object with 3 attributes:
- ``automod_rule_name``: The name of the automod rule that was triggered.
- ``automod_rule_trigger``: A :class:`AutoModRuleTriggerType` representation of the rule type that was triggered.
- ``channel``: The channel in which the automod rule was triggered.
When this is the action, :attr:`AuditLogEntry.changes` is empty.
.. versionadded:: 2.1
.. class:: AuditLogActionCategory
Represents the category that the :class:`AuditLogAction` belongs to.