Skip to content

Commit

Permalink
feat(AutoModeration): add custom_message field support (#727)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateo-tem committed Feb 25, 2023
1 parent dc09ace commit 0d47c69
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 4 deletions.
9 changes: 8 additions & 1 deletion deno/payloads/v10/autoModeration.ts
Expand Up @@ -169,7 +169,8 @@ export interface APIAutoModerationAction {
*/
export enum AutoModerationActionType {
/**
* Blocks the content of a message according to the rule
* Blocks a member's message and prevents it from being posted.
* A custom explanation can be specified and shown to members whenever their message is blocked
*/
BlockMessage = 1,
/**
Expand Down Expand Up @@ -200,4 +201,10 @@ export interface APIAutoModerationActionMetadata {
* Associated action type: {@link AutoModerationActionType.Timeout}
*/
duration_seconds?: number;
/**
* Additional explanation that will be shown to members whenever their message is blocked (Maximum 150 characters)
*
* Associated action type {@link AutoModerationActionType.BlockMessage}
*/
custom_message?: string;
}
9 changes: 8 additions & 1 deletion deno/payloads/v9/autoModeration.ts
Expand Up @@ -169,7 +169,8 @@ export interface APIAutoModerationAction {
*/
export enum AutoModerationActionType {
/**
* Blocks the content of a message according to the rule
* Blocks a member's message and prevents it from being posted.
* A custom explanation can be specified and shown to members whenever their message is blocked
*/
BlockMessage = 1,
/**
Expand Down Expand Up @@ -200,4 +201,10 @@ export interface APIAutoModerationActionMetadata {
* Associated action type: {@link AutoModerationActionType.Timeout}
*/
duration_seconds?: number;
/**
* Additional explanation that will be shown to members whenever their message is blocked (Maximum 150 characters)
*
* Associated action type {@link AutoModerationActionType.BlockMessage}
*/
custom_message?: string;
}
9 changes: 8 additions & 1 deletion payloads/v10/autoModeration.ts
Expand Up @@ -169,7 +169,8 @@ export interface APIAutoModerationAction {
*/
export enum AutoModerationActionType {
/**
* Blocks the content of a message according to the rule
* Blocks a member's message and prevents it from being posted.
* A custom explanation can be specified and shown to members whenever their message is blocked
*/
BlockMessage = 1,
/**
Expand Down Expand Up @@ -200,4 +201,10 @@ export interface APIAutoModerationActionMetadata {
* Associated action type: {@link AutoModerationActionType.Timeout}
*/
duration_seconds?: number;
/**
* Additional explanation that will be shown to members whenever their message is blocked (Maximum 150 characters)
*
* Associated action type {@link AutoModerationActionType.BlockMessage}
*/
custom_message?: string;
}
9 changes: 8 additions & 1 deletion payloads/v9/autoModeration.ts
Expand Up @@ -169,7 +169,8 @@ export interface APIAutoModerationAction {
*/
export enum AutoModerationActionType {
/**
* Blocks the content of a message according to the rule
* Blocks a member's message and prevents it from being posted.
* A custom explanation can be specified and shown to members whenever their message is blocked
*/
BlockMessage = 1,
/**
Expand Down Expand Up @@ -200,4 +201,10 @@ export interface APIAutoModerationActionMetadata {
* Associated action type: {@link AutoModerationActionType.Timeout}
*/
duration_seconds?: number;
/**
* Additional explanation that will be shown to members whenever their message is blocked (Maximum 150 characters)
*
* Associated action type {@link AutoModerationActionType.BlockMessage}
*/
custom_message?: string;
}

1 comment on commit 0d47c69

@vercel
Copy link

@vercel vercel bot commented on 0d47c69 Feb 25, 2023

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.