discord: Add omitempty option to Attachment.ContentType (#263)

This commit is contained in:
rigormorrtiss 2021-08-12 22:45:48 +04:00 committed by GitHub
parent 21888dcfc2
commit e97dcb750c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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"`