Skip to content

Commit

Permalink
feat(AutomoderationActionMetadata): add custom_message (#1515)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ju0x authored Jun 22, 2024
1 parent e189ee5 commit 5f78336
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions structs.go
Original file line number Diff line number Diff line change
Expand Up @@ -1766,6 +1766,10 @@ type AutoModerationActionMetadata struct {
// Timeout duration in seconds (maximum of 2419200 - 4 weeks).
// NOTE: should be only used with timeout action type.
Duration int `json:"duration_seconds,omitempty"`

// Additional explanation that will be shown to members whenever their message is blocked (maximum of 150 characters).
// NOTE: should be only used with block message action type.
CustomMessage string `json:"custom_message,omitempty"`
}

// AutoModerationAction stores data for an auto moderation action.
Expand Down

0 comments on commit 5f78336

Please sign in to comment.