Skip to main content

EditAutoModerationRuleOptions

@discordeno/botDocs


Documentation / @discordeno/bot / EditAutoModerationRuleOptions

Interface: EditAutoModerationRuleOptions

Properties

actions

actions: object[]

The actions that will trigger for this rule

Defined in

packages/types/dist/types/discordeno.d.ts:977


enabled?

optional enabled: boolean

Whether the rule should be enabled.

Defined in

packages/types/dist/types/discordeno.d.ts:989


eventType

eventType: AutoModerationEventTypes

The type of event to trigger the rule on.

Defined in

packages/types/dist/types/discordeno.d.ts:964


exemptChannels?

optional exemptChannels: BigString[]

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

Defined in

packages/types/dist/types/discordeno.d.ts:993


exemptRoles?

optional exemptRoles: BigString[]

The role ids that should not be effected by the rule

Defined in

packages/types/dist/types/discordeno.d.ts:991


name

name: string

The name of the rule.

Defined in

packages/types/dist/types/discordeno.d.ts:962


triggerMetadata

triggerMetadata: object

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

Defined in

packages/types/dist/types/discordeno.d.ts:966