|
|
@ -166,8 +166,6 @@ AutoMod |
|
|
|
Called when a :class:`AutoModRule` is created. |
|
|
|
You must have :attr:`~Permissions.manage_guild` to receive this. |
|
|
|
|
|
|
|
This requires :attr:`Intents.auto_moderation_configuration` to be enabled. |
|
|
|
|
|
|
|
.. versionadded:: 2.0 |
|
|
|
|
|
|
|
:param rule: The rule that was created. |
|
|
@ -178,8 +176,6 @@ AutoMod |
|
|
|
Called when a :class:`AutoModRule` is updated. |
|
|
|
You must have :attr:`~Permissions.manage_guild` to receive this. |
|
|
|
|
|
|
|
This requires :attr:`Intents.auto_moderation_configuration` to be enabled. |
|
|
|
|
|
|
|
.. versionadded:: 2.0 |
|
|
|
|
|
|
|
:param rule: The rule that was updated. |
|
|
@ -190,8 +186,6 @@ AutoMod |
|
|
|
Called when a :class:`AutoModRule` is deleted. |
|
|
|
You must have :attr:`~Permissions.manage_guild` to receive this. |
|
|
|
|
|
|
|
This requires :attr:`Intents.auto_moderation_configuration` to be enabled. |
|
|
|
|
|
|
|
.. versionadded:: 2.0 |
|
|
|
|
|
|
|
:param rule: The rule that was deleted. |
|
|
@ -202,8 +196,6 @@ AutoMod |
|
|
|
Called when a :class:`AutoModAction` is created/performed. |
|
|
|
You must have :attr:`~Permissions.manage_guild` to receive this. |
|
|
|
|
|
|
|
This requires :attr:`Intents.auto_moderation_execution` to be enabled. |
|
|
|
|
|
|
|
.. versionadded:: 2.0 |
|
|
|
|
|
|
|
:param execution: The rule execution that was performed. |
|
|
@ -768,6 +760,26 @@ Guilds |
|
|
|
:param after: A list of stickers after the update. |
|
|
|
:type after: Sequence[:class:`GuildSticker`] |
|
|
|
|
|
|
|
.. function:: on_audit_log_entry_create(entry) |
|
|
|
|
|
|
|
Called when a :class:`Guild` gets a new audit log entry. |
|
|
|
You must have :attr:`~Permissions.view_audit_log` to receive this. |
|
|
|
|
|
|
|
.. versionadded:: 2.0 |
|
|
|
|
|
|
|
.. warning:: |
|
|
|
|
|
|
|
Audit log entries received through the gateway are subject to data retrieval |
|
|
|
from cache rather than REST. This means that some data might not be present |
|
|
|
when you expect it to be. For example, the :attr:`AuditLogEntry.target` |
|
|
|
attribute will usually be a :class:`discord.Object` and the |
|
|
|
:attr:`AuditLogEntry.user` attribute will depend on user and member cache. |
|
|
|
|
|
|
|
To get the user ID of entry, :attr:`AuditLogEntry.user_id` can be used instead. |
|
|
|
|
|
|
|
:param entry: The audit log entry that was created. |
|
|
|
:type entry: :class:`AuditLogEntry` |
|
|
|
|
|
|
|
.. function:: on_invite_create(invite) |
|
|
|
|
|
|
|
Called when an :class:`Invite` is created. |
|
|
|