interface CreateAutoModerationRuleOptions
implements WithReason
import { type CreateAutoModerationRuleOptions } from "https://deno.land/x/discordeno@17.2.0/plugins/cache/deps.ts";
Properties
eventType: AutoModerationEventTypes
The type of event to trigger the rule on.
triggerType: AutoModerationTriggerTypes
The type of trigger to use for the rule.
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
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.