diff --git a/webhook.go b/webhook.go index a4978b462..6d8e2fe15 100644 --- a/webhook.go +++ b/webhook.go @@ -37,8 +37,10 @@ type WebhookParams struct { AllowedMentions *MessageAllowedMentions `json:"allowed_mentions,omitempty"` // Only MessageFlagsSuppressEmbeds and MessageFlagsEphemeral can be set. // MessageFlagsEphemeral can only be set when using Followup Message Create endpoint. - Flags MessageFlags `json:"flags,omitempty"` - ThreadName string `json:"thread_name,omitempty"` + Flags MessageFlags `json:"flags,omitempty"` + // Name of the thread to create. + // NOTE: can only be set if the webhook channel is a forum. + ThreadName string `json:"thread_name,omitempty"` } // WebhookEdit stores data for editing of a webhook message.