AutoModerationRule

Signature

export interface AutoModerationRule extends ObjectToLower<APIAutoModerationRule>

Properties

get createdTimestamp(): number;

Create a timestamp for the current object.

get createdAt(): Date;

createdAt gets the creation Date instace of the current object.

triggerMetadata: { keywordFilter?: string[] | undefined; presets?: AutoModerationRuleKeywordPresetType[] | undefined; allowList?: string[] | undefined; regexPatterns?: string[] | undefined; mentionTotalLimit?: number | undefined; mentionRaidProtectionEnabled?: boolean | undefined; };
actions: { type: AutoModerationActionType; metadata?: { channelId?: string | undefined; durationSeconds?: number | undefined; customMessage?: string | undefined; } | undefined; }[];

Methods

delete(reason?: string): Promise<undefined>;