Skip to main content

DiscordAutoModerationRuleTriggerMetadata

@discordeno/botDocs


Documentation / @discordeno/bot / DiscordAutoModerationRuleTriggerMetadata

Interface: DiscordAutoModerationRuleTriggerMetadata

Properties

allow_list?

optional allow_list: string[]

The substrings which will exempt from triggering the preset trigger type.

Remarks

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

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

Defined in

packages/types/dist/types/discord.d.ts:2029


keyword_filter?

optional keyword_filter: string[]

The keywords needed to match.

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

Defined in

packages/types/dist/types/discord.d.ts:2003


mention_raid_protection_enabled?

optional mention_raid_protection_enabled: boolean

Whether to automatically detect mention raids.

Remarks

Only present with AutoModerationTriggerTypes.MentionSpam.

Defined in

packages/types/dist/types/discord.d.ts:2045


mention_total_limit?

optional mention_total_limit: number

Total number of mentions (role & user) allowed per message.

Remarks

Only present with AutoModerationTriggerTypes.MentionSpam.

Maximum of 50

Defined in

packages/types/dist/types/discord.d.ts:2038


presets?

optional presets: DiscordAutoModerationRuleTriggerMetadataPresets[]

The pre-defined lists of words to match from.

Remarks

Only present with AutoModerationTriggerTypes.KeywordPreset.

Defined in

packages/types/dist/types/discord.d.ts:2019


regex_patterns

regex_patterns: string[]

Regular expression patterns which will be matched against content.

Remarks

Only present with AutoModerationTriggerTypes.Keyword and AutoModerationTriggerTypes.MemberProfile.

Can have up to 10 elements in the array and each string can have up to 260 characters

Defined in

packages/types/dist/types/discord.d.ts:2012