AutoModerationTriggerMetadataOptions
typedef · Source
Options used to set the trigger metadata of an auto moderation rule. Type: Object
Properties
keywordFilter
optional
keywordFilter: Array<string>
The substrings that will be searched for in the content
regexPatterns
optional
regexPatterns: Array<string>
The regular expression patterns which will be matched against the content Only Rust-flavored regular expressions are supported.
presets
optional
presets: Array<AutoModerationRuleKeywordPresetType>
The internally pre-defined wordsets which will be searched for in the content
allowList
optional
allowList: Array<string>
The substrings that will be exempt from triggering AutoModerationRuleTriggerType.KEYWORD and AutoModerationRuleTriggerType.KEYWORD_PRESET
mentionTotalLimit
nullable · optional
mentionTotalLimit: number
The total number of role & user mentions allowed per message
mentionRaidProtectionEnabled
optional
mentionRaidProtectionEnabled: boolean
Whether to automatically detect mention raids