From f0b7e81468f7b67ae5b8571881c081388eb0fc6b Mon Sep 17 00:00:00 2001 From: Fedor Lapshin Date: Sun, 10 Oct 2021 18:09:59 +0300 Subject: [PATCH] feat: ephemeral attachments (#1008) --- message.go | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/message.go b/message.go index 91a00db..402ab1f 100644 --- a/message.go +++ b/message.go @@ -288,13 +288,14 @@ type MessageAllowedMentions struct { // A MessageAttachment stores data for message attachments. type MessageAttachment struct { - ID string `json:"id"` - URL string `json:"url"` - ProxyURL string `json:"proxy_url"` - Filename string `json:"filename"` - Width int `json:"width"` - Height int `json:"height"` - Size int `json:"size"` + ID string `json:"id"` + URL string `json:"url"` + ProxyURL string `json:"proxy_url"` + Filename string `json:"filename"` + Width int `json:"width"` + Height int `json:"height"` + Size int `json:"size"` + Ephemeral bool `json:"ephemeral"` } // MessageEmbedFooter is a part of a MessageEmbed struct.