Skip to content

Commit

Permalink
add custom_message to automoderation action metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
Ju0x committed Apr 4, 2024
1 parent da9e191 commit ac47b71
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 @@ -1743,6 +1743,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 ac47b71

Please sign in to comment.