Optional
allow_Substrings which will be exempt from triggering the preset trigger type (Maximum of 1000)
A allowed-word can be a phrase which contains multiple words. Wildcard symbols can be used to customize how each string will be matched. Each keyword must be 60 characters or less
Optional
keyword_Substrings which will be searched for in content (Maximum of 1000)
A keyword can be a phrase which contains multiple words. Wildcard symbols can be used to customize how each string will be matched. Each keyword must be 60 characters or less
Associated trigger types: AutoModerationRuleTriggerType.Keyword, AutoModerationRuleTriggerType.MemberProfile
Optional
mention_Whether to automatically detect mention raids
Associated trigger type: AutoModerationRuleTriggerType.MentionSpam
Optional
mention_Total number of mentions (role & user) allowed per message (Maximum of 50)
Associated trigger type: AutoModerationRuleTriggerType.MentionSpam
Optional
presetsThe internally pre-defined wordsets which will be searched for in content
Associated trigger type: AutoModerationRuleTriggerType.KeywordPreset
Optional
regex_Regular expression patterns which will be matched against content (Maximum of 10)
Only Rust flavored regex is currently supported (Maximum of 260 characters)
Associated trigger types: AutoModerationRuleTriggerType.Keyword, AutoModerationRuleTriggerType.MemberProfile
See
https://discord.com/developers/docs/resources/auto-moderation#auto-moderation-rule-object-trigger-metadata