CreateAutoModerationRuleOptions
Documentation / @discordeno/types / CreateAutoModerationRuleOptions
Interface: CreateAutoModerationRuleOptions
Defined in: discordeno/autoModeration.ts:58
Properties
actions
actions:
DiscordenoAutoModerationAction[]
Defined in: discordeno/autoModeration.ts:68
The actions that will trigger for this rule
enabled?
optionalenabled?:boolean
Defined in: discordeno/autoModeration.ts:70
Whether the rule should be enabled, true by default.
eventType
eventType:
AutoModerationEventTypes
Defined in: discordeno/autoModeration.ts:62
The type of event to trigger the rule on.
exemptChannels?
optionalexemptChannels?:BigString[]
Defined in: discordeno/autoModeration.ts:74
The channel ids that should not be effected by the rule.
exemptRoles?
optionalexemptRoles?:BigString[]
Defined in: discordeno/autoModeration.ts:72
The role ids that should not be effected by the rule
name
name:
string
Defined in: discordeno/autoModeration.ts:60
The name of the rule.
triggerMetadata
triggerMetadata:
object
Defined in: discordeno/autoModeration.ts:66
The metadata to use for the trigger.
allowList?
optionalallowList?:string[]
keywordFilter?
optionalkeywordFilter?:string[]
mentionRaidProtectionEnabled?
optionalmentionRaidProtectionEnabled?:boolean
mentionTotalLimit?
optionalmentionTotalLimit?:number
presets?
optionalpresets?:DiscordAutoModerationRuleTriggerMetadataPresets[]
regexPatterns?
optionalregexPatterns?:string[]
triggerType
triggerType:
AutoModerationTriggerTypes
Defined in: discordeno/autoModeration.ts:64
The type of trigger to use for the rule.