From 0c7539c6d535b8f534b4ace14d58822e2b3743c4 Mon Sep 17 00:00:00 2001 From: samhza Date: Wed, 28 Sep 2022 18:22:29 -0400 Subject: [PATCH] discord: Add Attachment.Description (#347) --- discord/message.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/discord/message.go b/discord/message.go index 1f7e9b8..96d895e 100644 --- a/discord/message.go +++ b/discord/message.go @@ -415,6 +415,9 @@ type Attachment struct { ID AttachmentID `json:"id"` // Filename is the name of file attached. 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 string `json:"content_type,omitempty"` // Size is the size of file in bytes.