From 598e559e849e0835f22cefae1109cb29c82a8526 Mon Sep 17 00:00:00 2001 From: nitroflap Date: Thu, 30 Sep 2021 14:00:35 +0300 Subject: [PATCH] feat: ephemeral attachments --- message.go | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/message.go b/message.go index fdcdd87d2..60c950665 100644 --- a/message.go +++ b/message.go @@ -276,13 +276,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.