From 21888dcfc212909a1d5e0c2cdf8cde20eaad7a62 Mon Sep 17 00:00:00 2001 From: Juby210 <31005896+Juby210@users.noreply.github.com> Date: Thu, 12 Aug 2021 03:16:50 +0200 Subject: [PATCH] discord: Add missing ContentType to Attachment (#262) --- discord/message.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/discord/message.go b/discord/message.go index 7beb6fc..446f7d6 100644 --- a/discord/message.go +++ b/discord/message.go @@ -357,6 +357,8 @@ type Attachment struct { ID AttachmentID `json:"id"` // Filename is the name of file attached. Filename string `json:"filename"` + // ContentType is the media type of file. + ContentType string `json:"content_type"` // Size is the size of file in bytes. Size uint64 `json:"size"`