Skip to main content
Deno 2 is finally here 🎉️
Learn more
Extremely Popular
Go to Latest
interface DiscordAutoModerationRule
Re-export
import { type DiscordAutoModerationRule } from "https://deno.land/x/discordeno@17.2.0/plugins/validations/deps.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.

Indicates in what event context a rule should be checked.

The type of trigger for this rule

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

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.