From c07f57455870e6d811385ca165e0cb8911679643 Mon Sep 17 00:00:00 2001 From: diamondburned Date: Wed, 24 May 2023 14:25:19 -0700 Subject: [PATCH] api: Don't omitempty SendMessageData.Flags This might fix Discord pings not working. AFAIK Discord might have changed the defaults which might have broken some of our bots. Bots that want to set flags should explicitly do so. We're not supporting Discord's defaults. --- api/send.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/send.go b/api/send.go index b400a28..e3cc354 100644 --- a/api/send.go +++ b/api/send.go @@ -121,7 +121,7 @@ type SendMessageData struct { 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"` + Flags discord.MessageFlags `json:"flags"` } // NeedsMultipart returns true if the SendMessageData has files.