From 9d3f579e904c7a774c418d6e51adf61cfa1e5eec Mon Sep 17 00:00:00 2001 From: ayn2op Date: Sat, 11 Feb 2023 15:04:47 +0530 Subject: [PATCH] api: add Flags field to SendMessageData struct --- api/send.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/send.go b/api/send.go index dd335f3..b400a28 100644 --- a/api/send.go +++ b/api/send.go @@ -119,6 +119,9 @@ type SendMessageData struct { // guild_id in the reference. However, they are not necessary, but will be // validated if sent. Reference *discord.MessageReference `json:"message_reference,omitempty"` + + // Flags specifies the message flags to set (only `SuppressEmbeds` and `SuppressNotifications` can be set). + Flags discord.MessageFlags `json:"flags,omitempty"` } // NeedsMultipart returns true if the SendMessageData has files.