api: add Flags field to SendMessageData struct

This commit is contained in:
ayn2op 2023-02-11 15:04:47 +05:30 committed by diamondburned
parent 53c0da7358
commit 9d3f579e90
1 changed files with 3 additions and 0 deletions

View File

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