MentionSpamAutoModerationRuleModifyBuilder
Properties
Link copied to clipboard
The actions which will execute when the rule is triggered.
Link copied to clipboard
The rule event type.
Link copied to clipboard
The IDs of the channels that should not be affected by the rule (maximum of 50).
Link copied to clipboard
The IDs of the roles that should not be affected by the rule (maximum of 20).
Link copied to clipboard
Total number of unique role and user mentions allowed per message (maximum of 50).
Link copied to clipboard
Whether to automatically detect mention raids.
Link copied to clipboard
The rule trigger type.
Functions
Link copied to clipboard
inline fun AutoModerationRuleBuilder.blockMessage(builder: BlockMessageAutoModerationActionBuilder.() -> Unit = {})
inline fun BlockMessageAutoModerationRuleBuilder.blockMessage(builder: BlockMessageAutoModerationActionBuilder.() -> Unit = {})
Add a BlockMessage action which will execute whenever the rule is triggered.
Link copied to clipboard
Exempt a channel from being affected by the rule (maximum of 50).
Link copied to clipboard
Exempt a role from being affected by the rule (maximum of 20).
Link copied to clipboard
inline fun AutoModerationRuleBuilder.sendAlertMessage(channelId: Snowflake, builder: SendAlertMessageAutoModerationActionBuilder.() -> Unit = {})
Add a SendAlertMessage action which will execute whenever the rule is triggered.
Link copied to clipboard
inline fun TimeoutAutoModerationRuleBuilder.timeout(duration: Duration, builder: TimeoutAutoModerationActionBuilder.() -> Unit = {})
Add a Timeout action which will execute whenever the rule is triggered.
Link copied to clipboard