APIAutoModerationRuleTriggerMetadata

https://discord.com/developers/docs/resources/auto-moderation#auto-moderation-rule-object-trigger-metadata

Signature

export interface APIAutoModerationRuleTriggerMetadata

Properties

keyword_filter?: string[];

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 See [keyword matching strategies](https://discord.com/developers/docs/resources/auto-moderation#auto-moderation-rule-object-keyword-matching-strategies) Associated trigger types: {@link AutoModerationRuleTriggerType.Keyword}, {@link AutoModerationRuleTriggerType.MemberProfile}

allow_list?: string[];

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 See [keyword matching strategies](https://discord.com/developers/docs/resources/auto-moderation#auto-moderation-rule-object-keyword-matching-strategies) Associated trigger types: {@link AutoModerationRuleTriggerType.Keyword}, {@link AutoModerationRuleTriggerType.KeywordPreset}, {@link AutoModerationRuleTriggerType.MemberProfile}

regex_patterns?: string[];

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: {@link AutoModerationRuleTriggerType.Keyword}, {@link AutoModerationRuleTriggerType.MemberProfile}

mention_total_limit?: number;

Total number of mentions (role & user) allowed per message (Maximum of 50) Associated trigger type: {@link AutoModerationRuleTriggerType.MentionSpam}

mention_raid_protection_enabled?: boolean;

Whether to automatically detect mention raids Associated trigger type: {@link AutoModerationRuleTriggerType.MentionSpam}