AutoModerationRuleTriggerMetadata
Documentation / @discordeno/bot / AutoModerationRuleTriggerMetadata
Interface: AutoModerationRuleTriggerMetadata
Defined in: transformers/types.ts:361
Properties
allowList?
optionalallowList:string[]
Defined in: transformers/types.ts:396
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?
optionalkeywordFilter:string[]
Defined in: transformers/types.ts:370
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?
optionalmentionRaidProtectionEnabled:boolean
Defined in: transformers/types.ts:412
Whether to automatically detect mention raids.
Remarks
Only present with AutoModerationTriggerTypes.MentionSpam.
mentionTotalLimit?
optionalmentionTotalLimit:number
Defined in: transformers/types.ts:405
Total number of unique role and user mentions allowed per message.
Remarks
Only present with AutoModerationTriggerTypes.MentionSpam.
Maximum of 50
presets?
optionalpresets:DiscordAutoModerationRuleTriggerMetadataPresets[]
Defined in: transformers/types.ts:386
The Discord pre-defined wordsets which will be searched for in content.
Remarks
Only present with AutoModerationTriggerTypes.KeywordPreset.
regexPatterns?
optionalregexPatterns:string[]
Defined in: transformers/types.ts:379
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.