Skip to content

Commit

Permalink
feat(APIAutoMod): add support for regex matching (#603)
Browse files Browse the repository at this point in the history
  • Loading branch information
vvito7 committed Nov 5, 2022
1 parent 0858b7c commit 88a60f7
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 0 deletions.
8 changes: 8 additions & 0 deletions deno/payloads/v10/autoModeration.ts
Expand Up @@ -104,6 +104,14 @@ export interface APIAutoModerationRuleTriggerMetadata {
* Associated trigger type: {@link AutoModerationRuleTriggerType.KeywordPreset}
*/
allow_list?: string[];
/**
* Regular expression patterns which will be matched against content (Maximum of 10)
*
* Only Rust flavored regex is currently supported (Maximum of 75 characters)
*
* Associated trigger type: {@link AutoModerationRuleTriggerType.Keyword}
*/
regex_patterns?: string[];
/**
* Total number of mentions (role & user) allowed per message (Maximum of 50)
*
Expand Down
8 changes: 8 additions & 0 deletions deno/payloads/v9/autoModeration.ts
Expand Up @@ -104,6 +104,14 @@ export interface APIAutoModerationRuleTriggerMetadata {
* Associated trigger type: {@link AutoModerationRuleTriggerType.KeywordPreset}
*/
allow_list?: string[];
/**
* Regular expression patterns which will be matched against content (Maximum of 10)
*
* Only Rust flavored regex is currently supported (Maximum of 75 characters)
*
* Associated trigger type: {@link AutoModerationRuleTriggerType.Keyword}
*/
regex_patterns?: string[];
/**
* Total number of mentions (role & user) allowed per message (Maximum of 50)
*
Expand Down
8 changes: 8 additions & 0 deletions payloads/v10/autoModeration.ts
Expand Up @@ -104,6 +104,14 @@ export interface APIAutoModerationRuleTriggerMetadata {
* Associated trigger type: {@link AutoModerationRuleTriggerType.KeywordPreset}
*/
allow_list?: string[];
/**
* Regular expression patterns which will be matched against content (Maximum of 10)
*
* Only Rust flavored regex is currently supported (Maximum of 75 characters)
*
* Associated trigger type: {@link AutoModerationRuleTriggerType.Keyword}
*/
regex_patterns?: string[];
/**
* Total number of mentions (role & user) allowed per message (Maximum of 50)
*
Expand Down
8 changes: 8 additions & 0 deletions payloads/v9/autoModeration.ts
Expand Up @@ -104,6 +104,14 @@ export interface APIAutoModerationRuleTriggerMetadata {
* Associated trigger type: {@link AutoModerationRuleTriggerType.KeywordPreset}
*/
allow_list?: string[];
/**
* Regular expression patterns which will be matched against content (Maximum of 10)
*
* Only Rust flavored regex is currently supported (Maximum of 75 characters)
*
* Associated trigger type: {@link AutoModerationRuleTriggerType.Keyword}
*/
regex_patterns?: string[];
/**
* Total number of mentions (role & user) allowed per message (Maximum of 50)
*
Expand Down

1 comment on commit 88a60f7

@vercel
Copy link

@vercel vercel bot commented on 88a60f7 Nov 5, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.