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

discord: Add Attachment.Description (#347)

This commit is contained in:
samhza 2022-09-28 18:22:29 -04:00 committed by GitHub
parent fa35b32b79
commit 0c7539c6d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -415,6 +415,9 @@ type Attachment struct {
ID AttachmentID `json:"id"` ID AttachmentID `json:"id"`
// Filename is the name of file attached. // Filename is the name of file attached.
Filename string `json:"filename"` Filename string `json:"filename"`
// Description is the attachment's description. It is a maximum of 1024
// characters long.
Description string `json:"description,omitempty"`
// ContentType is the media type of file. // ContentType is the media type of file.
ContentType string `json:"content_type,omitempty"` ContentType string `json:"content_type,omitempty"`
// Size is the size of file in bytes. // Size is the size of file in bytes.