Skip to main content

EditAutoModerationRuleOptions

Documentation


Documentation / @discordeno/types / EditAutoModerationRuleOptions

Interface: EditAutoModerationRuleOptions

Defined in: discordeno/autoModeration.ts:78

https://docs.discord.com/developers/resources/auto-moderation#modify-auto-moderation-rule-json-params

Properties

actions?

optional actions?: DiscordenoAutoModerationAction[]

Defined in: discordeno/autoModeration.ts:86

The actions that will trigger for this rule


enabled?

optional enabled?: boolean

Defined in: discordeno/autoModeration.ts:88

Whether the rule should be enabled.


eventType?

optional eventType?: AutoModerationEventTypes

Defined in: discordeno/autoModeration.ts:82

The type of event to trigger the rule on.


exemptChannels?

optional exemptChannels?: BigString[]

Defined in: discordeno/autoModeration.ts:92

The channel ids that should not be effected by the rule.


exemptRoles?

optional exemptRoles?: BigString[]

Defined in: discordeno/autoModeration.ts:90

The role ids that should not be effected by the rule


name?

optional name?: string

Defined in: discordeno/autoModeration.ts:80

The name of the rule.


triggerMetadata?

optional triggerMetadata?: object

Defined in: discordeno/autoModeration.ts:84

The metadata to use for the trigger.

allowList?

optional allowList?: string[]

keywordFilter?

optional keywordFilter?: string[]

mentionRaidProtectionEnabled?

optional mentionRaidProtectionEnabled?: boolean

mentionTotalLimit?

optional mentionTotalLimit?: number

presets?

optional presets?: DiscordAutoModerationRuleTriggerMetadataPresets[]

regexPatterns?

optional regexPatterns?: string[]