mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 09:03:29 +01:00
feat(MessageAttachment): add support for ephemeral property (#6652)
Co-authored-by: Rodry <38259440+ImRodry@users.noreply.github.com>
This commit is contained in:
@@ -103,6 +103,12 @@ class MessageAttachment {
|
||||
* @type {?string}
|
||||
*/
|
||||
this.contentType = data.content_type ?? null;
|
||||
|
||||
/**
|
||||
* Whether this attachment is ephemeral
|
||||
* @type {boolean}
|
||||
*/
|
||||
this.ephemeral = data.ephemeral ?? false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user