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

    Interface RESTPostAPIAutoModerationRuleJSONBody

    interface RESTPostAPIAutoModerationRuleJSONBody {
        actions: APIAutoModerationAction[];
        enabled?: boolean;
        event_type: AutoModerationRuleEventType;
        exempt_channels?: string[];
        exempt_roles?: string[];
        name: string;
        trigger_metadata?: APIAutoModerationRuleTriggerMetadata;
        trigger_type: AutoModerationRuleTriggerType;
    }
    Index

    Properties

    The actions which will execute when this rule is triggered

    enabled?: boolean

    Whether this rule is enabled

    false

    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)

    name: string

    The rule name

    The rule trigger metadata

    Can be omitted if the trigger type is AutoModerationRuleTriggerType.Spam

    The rule trigger type