mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
1
typings/index.d.ts
vendored
1
typings/index.d.ts
vendored
@@ -1278,6 +1278,7 @@ export class MessageAttachment {
|
||||
|
||||
public attachment: BufferResolvable | Stream;
|
||||
public contentType: string | null;
|
||||
public ephemeral: boolean;
|
||||
public height: number | null;
|
||||
public id: Snowflake;
|
||||
public name: string | null;
|
||||
|
||||
Reference in New Issue
Block a user