Discord.https - v3.0.16
    Preparing search index...

    Interface APIAutoModerationRule

    interface APIAutoModerationRule {
        actions: APIAutoModerationAction[];
        creator_id: string;
        enabled: boolean;
        event_type: AutoModerationRuleEventType;
        exempt_channels: string[];
        exempt_roles: string[];
        guild_id: string;
        id: string;
        name: string;
        trigger_metadata: APIAutoModerationRuleTriggerMetadata;
        trigger_type: AutoModerationRuleTriggerType;
    }
    Index

    Properties

    The actions which will execute when this rule is triggered

    creator_id: string

    The user id who created this rule

    enabled: boolean

    Whether this rule is enabled

    The rule event type

    exempt_channels: string[]

    The channel ids that shouldn't be affected by this rule (Maximum of 50)

    exempt_roles: string[]

    The role ids that shouldn't be affected by this rule (Maximum of 20)

    guild_id: string

    The guild which this rule belongs to

    id: string

    The id of this rule

    name: string

    The rule name

    The rule trigger metadata

    The rule trigger type