Preview deployment

interface AutoModerationTriggerMetadataOptions

export interface AutoModerationTriggerMetadataOptions extends Partial<AutoModerationTriggerMetadata>

Options used to set the trigger metadata of an auto moderation rule.

allowList : Array<string>

The substrings that will be exempt from triggering AutoModerationRuleTriggerType, AutoModerationRuleTriggerType, and AutoModerationRuleTriggerType

keywordFilter : Array<string>

The substrings that will be searched for in the content

mentionRaidProtectionEnabled : boolean

Whether to automatically detect mention raids

optional
mentionTotalLimit? : number

The total number of role & user mentions allowed per message

The internally pre-defined wordsets which will be searched for in the content

regexPatterns : Array<string>

The regular expression patterns which will be matched against the content Only Rust-flavored regular expressions are supported.