Skip to main content

AutoModerationRuleTriggerMetadata

Documentation


Documentation / @discordeno/bot / AutoModerationRuleTriggerMetadata

Interface: AutoModerationRuleTriggerMetadata

Defined in: transformers/types.ts:441

Properties​

allowList?​

optional allowList?: string[]

Defined in: transformers/types.ts:476

The substrings which should not trigger the rule.

Remarks​

Only present with AutoModerationTriggerTypes.Keyword, AutoModerationTriggerTypes.KeywordPreset and AutoModerationTriggerTypes.MemberProfile.

When used with AutoModerationTriggerTypes.Keyword and AutoModerationTriggerTypes.MemberProfile, there can be up to 100 elements in the array and each string can have up to 60 characters. When used with AutoModerationTriggerTypes.KeywordPreset, there can be up to 1000 elements in the array and each string can have up to 60 characters.


keywordFilter?​

optional keywordFilter?: string[]

Defined in: transformers/types.ts:450

Substrings which will be searched for in content.

Remarks​

Only present with AutoModerationTriggerTypes.Keyword and AutoModerationTriggerTypes.MemberProfile.

Can have up to 1000 elements in the array and each string can have up to 60 characters.


mentionRaidProtectionEnabled?​

optional mentionRaidProtectionEnabled?: boolean

Defined in: transformers/types.ts:492

Whether to automatically detect mention raids.

Remarks​

Only present with AutoModerationTriggerTypes.MentionSpam.


mentionTotalLimit?​

optional mentionTotalLimit?: number

Defined in: transformers/types.ts:485

Total number of unique role and user mentions allowed per message.

Remarks​

Only present with AutoModerationTriggerTypes.MentionSpam.

Maximum of 50


presets?​

optional presets?: DiscordAutoModerationRuleTriggerMetadataPresets[]

Defined in: transformers/types.ts:466

The Discord pre-defined wordsets which will be searched for in content.

Remarks​

Only present with AutoModerationTriggerTypes.KeywordPreset.


regexPatterns?​

optional regexPatterns?: string[]

Defined in: transformers/types.ts:459

Regular expression patterns which will be matched against content.

Remarks​

Only present with AutoModerationTriggerTypes.Keyword and AutoModerationTriggerTypes.MemberProfile.

Only Rust flavored regex is currently supported. Can have up to 10 elements in the array and each string can have up to 260 characters.