Package-level declarations

Types

Link copied to clipboard
sealed class AutoModerationActionBuilder : RequestBuilder<DiscordAutoModerationAction>

A RequestBuilder for building actions which will execute whenever a rule is triggered.

Link copied to clipboard
Link copied to clipboard

An AutoModerationRuleBuilder for building rules with trigger type MentionSpam.

An AutoModerationActionBuilder for building actions with type SendAlertMessage.

Link copied to clipboard

An AutoModerationRuleBuilder for building rules with trigger type Spam.

Link copied to clipboard

An AutoModerationActionBuilder for building actions with type Timeout.

Link copied to clipboard

An AutoModerationRuleBuilder for building rules that can have a Timeout action.

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Add a keyword with keyword matching strategy Anywhere to keywords (maximum of 1000).

Link copied to clipboard

Add a BlockMessage action which will execute whenever the rule is triggered.

Link copied to clipboard
fun AutoModerationRuleBuilder.exemptChannel(channelId: Snowflake)

Exempt a channel from being affected by the rule (maximum of 50).

Link copied to clipboard
fun AutoModerationRuleBuilder.exemptRole(roleId: Snowflake)

Exempt a role from being affected by the rule (maximum of 20).

Link copied to clipboard

Add a keyword to keywords (maximum of 1000).

Link copied to clipboard

Add a keyword with keyword matching strategy Prefix to keywords (maximum of 1000).

Link copied to clipboard
fun KeywordPresetAutoModerationRuleBuilder.preset(preset: AutoModerationRuleKeywordPresetType)

Add a preset to presets.

Link copied to clipboard
Link copied to clipboard

Add a SendAlertMessage action which will execute whenever the rule is triggered.

Link copied to clipboard

Add a keyword with keyword matching strategy Suffix to keywords (maximum of 1000).

Link copied to clipboard

Add a Timeout action which will execute whenever the rule is triggered.