1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2024-11-27 17:23:00 +00:00

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

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