From 5f7833673e21e86b177518c5d555fcfa0ae27d47 Mon Sep 17 00:00:00 2001 From: Julien <67586349+Ju0x@users.noreply.github.com> Date: Sat, 22 Jun 2024 10:59:27 +0200 Subject: [PATCH] feat(AutomoderationActionMetadata): add custom_message (#1515) --- structs.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/structs.go b/structs.go index 3ffbcaf..33694d0 100644 --- a/structs.go +++ b/structs.go @@ -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.