Skip to content

Commit

Permalink
Automod member profiles
Browse files Browse the repository at this point in the history
  • Loading branch information
DonovanDMC committed Apr 1, 2023
1 parent 5058c30 commit 912d8da
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions lib/Constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -635,6 +635,7 @@ export enum AutoModerationTriggerTypes {
SPAM = 3,
KEYWORD_PRESET = 4,
MENTION_SPAM = 5,
MEMBER_PROFILE = 6,
}

export enum AutoModerationKeywordPresetTypes {
Expand Down
12 changes: 6 additions & 6 deletions lib/types/auto-moderation.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,17 @@ export interface RawAutoModerationRule {
}

export interface RawTriggerMetadata {
/** `KEYWORD`, `KEYWORD_PRESET` */
/** `KEYWORD`, `KEYWORD_PRESET`, `MEMBER_PROFILE` */
allow_list?: Array<string>;
/** `KEYWORD` */
/** `KEYWORD`, `MEMBER_PROFILE` */
keyword_filter?: Array<string>;
/** `MENTION_SPAM` */
mention_raid_protection_enabled?: boolean;
/** `MENTION_SPAM` */
mention_total_limit?: number;
/** `KEYWORD_PRESET` */
presets?: Array<AutoModerationKeywordPresetTypes>;
/** `KEYWORD` */
/** `KEYWORD`, `MEMBER_PROFILE` */
regex_patterns?: Array<string>;
}

Expand All @@ -45,17 +45,17 @@ export interface RawActionMetadata {
}

export interface TriggerMetadata {
/** The keywords to allow. Valid for `KEYWORD` & `KEYWORD_PRESET`. */
/** The keywords to allow. Valid for `KEYWORD`, `KEYWORD_PRESET` & `MEMBER_PROFILE`. `KEYWORD`, `MEMBER_PROFILE`: Max 100 total, 60 characters each. `KEYWORD_PRESET`: Max 1000 total, 60 characters each. */
allowList?: Array<string>;
/** The keywords to filter. Valid for `KEYWORD`. */
/** The keywords to filter. Valid for `KEYWORD` & `MEMBER_PROFILE`. Max 1000 total, 60 characters each. */
keywordFilter?: Array<string>;
/** Whether to enable mention raid protection. Valid for `MENTION_SPAM`. */
mentionRaidProtectionEnabled?: boolean;
/** The maximum number of mentions to allow. Valid for `MENTION_SPAM`. */
mentionTotalLimit?: number;
/** The presets to use. Valid for `KEYWORD_PRESET`. */
presets?: Array<AutoModerationKeywordPresetTypes>;
/** The regular expressions to match the content against and filter. Currently only Rust flavored regex such as `Rustexp` are supported. Valid for `KEYWORD`. */
/** The regular expressions to match the content against and filter. Currently only Rust flavored regex such as `Rustexp` are supported. Valid for `KEYWORD`& `MEMBER_PROFILE`. Max 10 total, 260 characters each. */
regexPatterns?: Array<string>;
}

Expand Down

0 comments on commit 912d8da

Please sign in to comment.