Skip to main content
Latest
interface DiscordAutoModerationRule
Re-export
import { type DiscordAutoModerationRule } from "https://deno.land/x/discordeno@18.0.1/mod.ts";

Properties

id: string

The id of this rule

guild_id: string

The guild id of the rule

name: string

The name of the rule

creator_id: string

The id of the user who created this rule.

event_type: AutoModerationEventTypes

Indicates in what event context a rule should be checked.

trigger_type: AutoModerationTriggerTypes

The type of trigger for this rule

trigger_metadata: DiscordAutoModerationRuleTriggerMetadata

The metadata used to determine whether a rule should be triggered.

actions: DiscordAutoModerationAction[]

Actions which will execute whenever a rule is triggered.

enabled: boolean

Whether the rule is enabled.

exempt_roles: string[]

The role ids that are whitelisted. Max 20.

exempt_channels: string[]

The channel ids that are whitelisted. Max 50.