EditAutoModerationRuleOptions
Documentation / @discordeno/bot / EditAutoModerationRuleOptions
Interface: EditAutoModerationRuleOptions
Defined in: packages/types/dist/types/discordeno.d.ts:960
Properties
actions
actions:
object
[]
Defined in: packages/types/dist/types/discordeno.d.ts:977
The actions that will trigger for this rule
metadata
metadata:
object
additional metadata needed during execution for this specific action type
metadata.channelId?
optional
metadata.channelId:BigString
The id of channel to which user content should be logged. Only in SendAlertMessage
metadata.durationSeconds?
optional
metadata.durationSeconds:number
Timeout duration in seconds. Only supported for TriggerType.Keyword
type
type:
AutoModerationActionType
The type of action to take when a rule is triggered
enabled?
optional
enabled:boolean
Defined in: packages/types/dist/types/discordeno.d.ts:989
Whether the rule should be enabled.
eventType
eventType:
AutoModerationEventTypes
Defined in: packages/types/dist/types/discordeno.d.ts:964
The type of event to trigger the rule on.
exemptChannels?
optional
exemptChannels:BigString
[]
Defined in: packages/types/dist/types/discordeno.d.ts:993
The channel ids that should not be effected by the rule.
exemptRoles?
optional
exemptRoles:BigString
[]
Defined in: packages/types/dist/types/discordeno.d.ts:991
The role ids that should not be effected by the rule
name
name:
string
Defined in: packages/types/dist/types/discordeno.d.ts:962
The name of the rule.
triggerMetadata
triggerMetadata:
object
Defined in: packages/types/dist/types/discordeno.d.ts:966
The metadata to use for the trigger.
allowList?
optional
allowList:string
[]
The substrings which will exempt from triggering the preset trigger type. Only present when TriggerType.KeywordPreset
keywordFilter?
optional
keywordFilter:string
[]
The keywords needed to match. Only present when TriggerType.Keyword
mentionTotalLimit
mentionTotalLimit:
number
Total number of mentions (role & user) allowed per message (Maximum of 50)
presets?
optional
presets:DiscordAutoModerationRuleTriggerMetadataPresets
[]
The pre-defined lists of words to match from. Only present when TriggerType.KeywordPreset