Skip to main content

DiscordAutoModerationRuleTriggerMetadata

Documentation


Documentation / @discordeno/types / DiscordAutoModerationRuleTriggerMetadata

Interface: DiscordAutoModerationRuleTriggerMetadata

Defined in: discord/autoModeration.ts:44

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

Properties

allow_list?

optional allow_list?: string[]

Defined in: discord/autoModeration.ts:79

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.


keyword_filter?

optional keyword_filter?: string[]

Defined in: discord/autoModeration.ts:53

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.


mention_raid_protection_enabled?

optional mention_raid_protection_enabled?: boolean

Defined in: discord/autoModeration.ts:95

Whether to automatically detect mention raids.

Remarks

Only present with AutoModerationTriggerTypes.MentionSpam.


mention_total_limit?

optional mention_total_limit?: number

Defined in: discord/autoModeration.ts:88

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: discord/autoModeration.ts:69

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

Remarks

Only present with AutoModerationTriggerTypes.KeywordPreset.


regex_patterns?

optional regex_patterns?: string[]

Defined in: discord/autoModeration.ts:62

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.