@@ -234,26 +234,30 @@ const (
234234 MessageTypeUserPremiumGuildSubscriptionTierTwo
235235 MessageTypeUserPremiumGuildSubscriptionTierThree
236236 MessageTypeChannelFollowAdd
237+ MessageTypeDiscoveryDisqualified = 14
238+ MessageTypeDiscoveryRequalified = 15
239+ MessageTypeInlineReply = 19
237240)
238241
239242// A Message stores all data related to a specific Discord message.
240243type Message struct {
241- ID string `json:"id"`
242- ChannelID string `json:"channel_id"`
243- GuildID string `json:"guild_id,omitempty"`
244- Content string `json:"content"`
245- Timestamp string `json:"timestamp"`
246- EditedTimestamp string `json:"edited_timestamp"`
247- MentionRoles []string `json:"mention_roles"`
248- Author * User `json:"author"`
249- Embeds []* MessageEmbed `json:"embeds"`
250- Mentions []* User `json:"mentions"`
251- Pinned bool `json:"pinned"`
252- Type MessageType `json:"type"`
253- WebhookID string `json:"webhook_id"`
254- Member * Member `json:"member"`
255- MentionChannels []* Channel `json:"mention_channels"`
256- Flags int `json:"flags"`
244+ ID string `json:"id"`
245+ ChannelID string `json:"channel_id"`
246+ GuildID string `json:"guild_id,omitempty"`
247+ Content string `json:"content"`
248+ Timestamp string `json:"timestamp"`
249+ EditedTimestamp string `json:"edited_timestamp"`
250+ MentionRoles []string `json:"mention_roles"`
251+ Author * User `json:"author"`
252+ Embeds []* MessageEmbed `json:"embeds"`
253+ Mentions []* User `json:"mentions"`
254+ Pinned bool `json:"pinned"`
255+ Type MessageType `json:"type"`
256+ WebhookID string `json:"webhook_id"`
257+ Member * Member `json:"member"`
258+ MentionChannels []* Channel `json:"mention_channels"`
259+ Flags int `json:"flags"`
260+ ReferencedMessage * Message `json:"referenced_message"`
257261}
258262
259263// File stores info about files you e.g. send in messages.
@@ -263,6 +267,7 @@ type File struct {
263267 Reader io.Reader
264268}
265269
270+ // MessageAttachment stores the messages attachment and its meta-data
266271type MessageAttachment struct {
267272 ID string `json:"id"`
268273 URL string `json:"url"`
0 commit comments