feat(MessageAttachment): add support for ephemeral property (#6652)

Co-authored-by: Rodry <38259440+ImRodry@users.noreply.github.com>
This commit is contained in:
Shubham Parihar
2021-09-28 22:22:03 +05:30
committed by GitHub
parent 60aa9ae478
commit c5db0ff606
2 changed files with 7 additions and 0 deletions

View File

@@ -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
View File

@@ -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;