SpamAutoModerationRuleCreateBuilder
class SpamAutoModerationRuleCreateBuilder(var name: String, var eventType: AutoModerationRuleEventType) : AutoModerationRuleCreateBuilder, SpamAutoModerationRuleBuilder(source)
A SpamAutoModerationRuleBuilder for building AutoModerationRuleCreateRequests.
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
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