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.
This commit is contained in:
diamondburned 2023-05-24 14:25:19 -07:00
parent 61f2ed7363
commit c07f574558
No known key found for this signature in database
GPG Key ID: D78C4471CE776659
1 changed files with 1 additions and 1 deletions

View File

@ -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.