feat(AutomoderationActionMetadata): add custom_message (#1515)

This commit is contained in:
Julien 2024-06-22 10:59:27 +02:00 committed by GitHub
parent e189ee5de8
commit 5f7833673e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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.