RESTPostAPIAutoModerationRuleJSONBody

https://discord.com/developers/docs/resources/auto-moderation#create-auto-moderation-rule

Signature

export interface RESTPostAPIAutoModerationRuleJSONBody

Properties

name: string;

The rule name

enabled?: boolean | undefined;

Whether this rule is enabled

@defaultfalse
exempt_roles?: Snowflake[] | undefined;

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

exempt_channels?: Snowflake[] | undefined;

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