DiscordAutoModerationRuleTriggerMetadata
Documentation / @discordeno/bot / DiscordAutoModerationRuleTriggerMetadata
Interface: DiscordAutoModerationRuleTriggerMetadata
Defined in: packages/types/dist/types/discord.d.ts:1997
Properties
allow_list?
optional
allow_list:string
[]
Defined in: packages/types/dist/types/discord.d.ts:2032
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.
keyword_filter?
optional
keyword_filter:string
[]
Defined in: packages/types/dist/types/discord.d.ts:2006
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
mention_raid_protection_enabled?
optional
mention_raid_protection_enabled:boolean
Defined in: packages/types/dist/types/discord.d.ts:2048
Whether to automatically detect mention raids.
Remarks
Only present with AutoModerationTriggerTypes.MentionSpam.
mention_total_limit?
optional
mention_total_limit:number
Defined in: packages/types/dist/types/discord.d.ts:2041
Total number of mentions (role & user) allowed per message.
Remarks
Only present with AutoModerationTriggerTypes.MentionSpam.
Maximum of 50
presets?
optional
presets:DiscordAutoModerationRuleTriggerMetadataPresets
[]
Defined in: packages/types/dist/types/discord.d.ts:2022
The pre-defined lists of words to match from.
Remarks
Only present with AutoModerationTriggerTypes.KeywordPreset.
regex_patterns
regex_patterns:
string
[]
Defined in: packages/types/dist/types/discord.d.ts:2015
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