From e97dcb750c7c7ddbfa08b58757762b187733e890 Mon Sep 17 00:00:00 2001 From: rigormorrtiss Date: Thu, 12 Aug 2021 22:45:48 +0400 Subject: [PATCH] discord: Add omitempty option to Attachment.ContentType (#263) --- discord/message.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/message.go b/discord/message.go index 446f7d6..f20d262 100644 --- a/discord/message.go +++ b/discord/message.go @@ -358,7 +358,7 @@ type Attachment struct { // Filename is the name of file attached. Filename string `json:"filename"` // ContentType is the media type of file. - ContentType string `json:"content_type"` + ContentType string `json:"content_type,omitempty"` // Size is the size of file in bytes. Size uint64 `json:"size"`