AutoModerationRuleBuilder
An AuditBuilder for building Auto Moderation Rules.
Auto Moderation is a feature which allows each guild to set up rules that trigger based on some criteria. For example, a rule can trigger whenever a message contains a specific keyword.
Rules can be configured to automatically execute actions whenever they trigger. For example, if a user tries to send a message which contains a certain keyword, a rule can trigger and block the message before it is sent.
Inheritors
Properties
The actions which will execute when the rule is triggered.
The rule event type.
The IDs of the channels that should not be affected by the rule (maximum of 50).
The IDs of the roles that should not be affected by the rule (maximum of 20).
The rule trigger type.
Functions
Use this to set actions for AutoModerationRuleBuilder.
Use this to set eventType for AutoModerationRuleBuilder.
Use this to set name for AutoModerationRuleBuilder.
Add a BlockMessage action which will execute whenever the rule is triggered.
Exempt a channel from being affected by the rule (maximum of 50).
Exempt a role from being affected by the rule (maximum of 20).
Add a SendAlertMessage action which will execute whenever the rule is triggered.