Latest
interface DiscordAutoModerationRule
import { type DiscordAutoModerationRule } from "https://dotland.deno.dev/x/discordeno@18.0.1/plugins/fileloader/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.

import DiscordAutoModerationRule
import { DiscordAutoModerationRule } from "https://dotland.deno.dev/x/discordeno@18.0.1/plugins/fileloader/deps.ts";