Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
interface EditAutoModerationRuleOptions
implements WithReason
import { type EditAutoModerationRuleOptions } from "https://deno.land/x/discordeno@18.0.1/template/beginner/deps.ts";

Properties

name: string

The name of the rule.

eventType: AutoModerationEventTypes

The type of event to trigger the rule on.

triggerMetadata: { keywordFilter?: string[]; presets?: DiscordAutoModerationRuleTriggerMetadataPresets[]; allowList?: string[]; mentionTotalLimit: number; }

The metadata to use for the trigger.

actions: { type: AutoModerationActionType; metadata: { channelId?: BigString; durationSeconds?: number; }; }[]

The actions that will trigger for this rule

optional
enabled: boolean

Whether the rule should be enabled.

optional
exemptRoles: BigString[]

The role ids that should not be effected by the rule

optional
exemptChannels: BigString[]

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