Add support for automod_quarantined_guild_tag member flag

This commit is contained in:
Sacul
2025-07-28 01:07:19 +08:00
committed by GitHub
parent 5f4a822c2e
commit e715ad6419
5 changed files with 43 additions and 1 deletions

View File

@ -3055,6 +3055,23 @@ of :class:`enum.Enum`.
.. versionadded:: 2.1
.. attribute:: automod_quarantine_user
An automod rule quarantined 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 2 attributes:
- ``automod_rule_name``: The name of the automod rule that was triggered.
- ``automod_rule_trigger_type``: A :class:`AutoModRuleTriggerType` representation of the rule type that was triggered.
When this is the action, :attr:`AuditLogEntry.changes` is empty.
.. versionadded:: 2.6
.. attribute:: creator_monetization_request_created
A request to monetize the server was created.