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:
parent
21888dcfc2
commit
e97dcb750c
|
@ -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"`
|
||||
|
||||
|
|
Loading…
Reference in a new issue