Skip to main content

AutoModerationRuleTriggerMetadata

Documentation


Documentation / @discordeno/bot / AutoModerationRuleTriggerMetadata

Interface: AutoModerationRuleTriggerMetadata

Defined in: transformers/types.ts:411

Properties

allowList?

optional allowList?: string[]

Defined in: transformers/types.ts:446

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:420

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:462

Whether to automatically detect mention raids.

Remarks

Only present with AutoModerationTriggerTypes.MentionSpam.


mentionTotalLimit?

optional mentionTotalLimit?: number

Defined in: transformers/types.ts:455

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:436

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:429

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.