Constructors

Link copied to clipboard
constructor(name: String, eventType: AutoModerationRuleEventType)

Properties

Link copied to clipboard

The actions which will execute when the rule is triggered.

Link copied to clipboard
open override var allowedKeywords: MutableList<String>?

Substrings which should not trigger the rule.

Link copied to clipboard
override var enabled: Boolean?

Whether the rule is enabled (false by default).

Link copied to clipboard
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
open override var keywords: MutableList<String>?

Substrings which will be searched for in content (maximum of 1000).

Link copied to clipboard
override var name: String

The rule name.

Link copied to clipboard
override var reason: String?

The reason for this request, this will be displayed in the audit log.

Link copied to clipboard
open override var regexPatterns: MutableList<String>?

Regular expression patterns which will be matched against content (maximum of 10).

Link copied to clipboard

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

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
Link copied to clipboard

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

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.

Link copied to clipboard