From f25b62549955039eb711d651b8c08e92f39ae006 Mon Sep 17 00:00:00 2001 From: nitroflap Date: Sat, 26 Feb 2022 15:01:01 +0300 Subject: [PATCH] feat(message): added content_type to MessageAttachment --- message.go | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/message.go b/message.go index 2f2bffd..265279e 100644 --- a/message.go +++ b/message.go @@ -317,14 +317,15 @@ type MessageAllowedMentions struct { // A MessageAttachment stores data for message attachments. type MessageAttachment struct { - ID string `json:"id"` - URL string `json:"url"` - ProxyURL string `json:"proxy_url"` - Filename string `json:"filename"` - Width int `json:"width"` - Height int `json:"height"` - Size int `json:"size"` - Ephemeral bool `json:"ephemeral"` + ID string `json:"id"` + URL string `json:"url"` + ProxyURL string `json:"proxy_url"` + Filename string `json:"filename"` + ContentType string `json:"content_type"` + Width int `json:"width"` + Height int `json:"height"` + Size int `json:"size"` + Ephemeral bool `json:"ephemeral"` } // MessageEmbedFooter is a part of a MessageEmbed struct.