From ac47b71811678ca1ff69a17caae629cb2f291d8d Mon Sep 17 00:00:00 2001 From: Ju0x Date: Thu, 4 Apr 2024 08:58:05 +0200 Subject: [PATCH] add custom_message to automoderation action metadata --- structs.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/structs.go b/structs.go index 8499bead7..1893aeebb 100644 --- a/structs.go +++ b/structs.go @@ -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.