feat(AutomoderationActionMetadata): add custom_message (#1515)
This commit is contained in:
parent
e189ee5de8
commit
5f7833673e
1 changed files with 4 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue