Skip to content

Commit 0c7539c

Browse files
authored
discord: Add Attachment.Description (#347)
1 parent fa35b32 commit 0c7539c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

discord/message.go

+3
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,9 @@ type Attachment struct {
415415
ID AttachmentID `json:"id"`
416416
// Filename is the name of file attached.
417417
Filename string `json:"filename"`
418+
// Description is the attachment's description. It is a maximum of 1024
419+
// characters long.
420+
Description string `json:"description,omitempty"`
418421
// ContentType is the media type of file.
419422
ContentType string `json:"content_type,omitempty"`
420423
// Size is the size of file in bytes.

0 commit comments

Comments
 (0)