@@ -296,16 +296,16 @@ func (c *Channel) CreateMessage(payload CreateMessageJSON) (*Message, error) {
296
296
// CreateMessageJSON - JSON payload structure
297
297
// TODO: files[n]
298
298
type CreateMessageJSON struct {
299
- Content string `json:"content,omitempty"` // the message contents (up to 2000 characters)
300
- TTS bool `json:"tts,omitempty"` // true if this is a TTS message
301
- Embeds []* Embed `json:"embeds,omitempty"` // embedded rich content (up to 6000 characters)
302
- AllowedMentions AllowedMentions `json:"allowed_mentions,omitempty"` // allowed mentions for the message
303
- MessageReference MessageReference `json:"message_reference,omitempty"` // include to make your message a reply
304
- Components []* Component `json:"components,omitempty"` // the components to include with the message
305
- StickerIDs []* Snowflake `json:"sticker_ids,omitempty"` // IDs of up to 3 stickers in the server to send in the message
306
- PayloadJson string `json:"payload_json,omitempty"` // JSON encoded body of non-file params
307
- Attachments []* Attachment `json:"attachments,omitempty"` // attachment objects with filename and description
308
- Flags MessageFlags `json:"flags,omitempty"` // message flags combined as a bitfield (only SUPPRESS_EMBEDS can be set)
299
+ Content string `json:"content,omitempty"` // the message contents (up to 2000 characters)
300
+ TTS bool `json:"tts,omitempty"` // true if this is a TTS message
301
+ Embeds []* Embed `json:"embeds,omitempty"` // embedded rich content (up to 6000 characters)
302
+ AllowedMentions AllowedMentions `json:"allowed_mentions,omitempty"` // allowed mentions for the message
303
+ MessageReference * MessageReference `json:"message_reference,omitempty"` // include to make your message a reply
304
+ Components []* Component `json:"components,omitempty"` // the components to include with the message
305
+ StickerIDs []* Snowflake `json:"sticker_ids,omitempty"` // IDs of up to 3 stickers in the server to send in the message
306
+ PayloadJson string `json:"payload_json,omitempty"` // JSON encoded body of non-file params
307
+ Attachments []* Attachment `json:"attachments,omitempty"` // attachment objects with filename and description
308
+ Flags MessageFlags `json:"flags,omitempty"` // message flags combined as a bitfield (only SUPPRESS_EMBEDS can be set)
309
309
}
310
310
311
311
// CrosspostMessage - Crosspost a message in an GuildAnnouncement Channel to following channels.
0 commit comments