Document permissions required for automod events

This commit is contained in:
Rapptz 2023-01-07 02:45:36 -05:00
parent 5600bf1d8b
commit 3f81984ebb

View File

@ -233,6 +233,7 @@ AutoMod
.. function:: on_automod_rule_create(rule) .. function:: on_automod_rule_create(rule)
Called when a :class:`AutoModRule` is created. 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. This requires :attr:`Intents.auto_moderation_configuration` to be enabled.
@ -244,6 +245,7 @@ AutoMod
.. function:: on_automod_rule_update(rule) .. function:: on_automod_rule_update(rule)
Called when a :class:`AutoModRule` is updated. 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. This requires :attr:`Intents.auto_moderation_configuration` to be enabled.
@ -255,6 +257,7 @@ AutoMod
.. function:: on_automod_rule_delete(rule) .. function:: on_automod_rule_delete(rule)
Called when a :class:`AutoModRule` is deleted. 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. This requires :attr:`Intents.auto_moderation_configuration` to be enabled.
@ -266,6 +269,7 @@ AutoMod
.. function:: on_automod_action(execution) .. function:: on_automod_action(execution)
Called when a :class:`AutoModAction` is created/performed. 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. This requires :attr:`Intents.auto_moderation_execution` to be enabled.