Skip to content

Commit

Permalink
feat(MessageAttachment): add support for ephemeral property (#6652)
Browse files Browse the repository at this point in the history
Co-authored-by: Rodry <38259440+ImRodry@users.noreply.github.com>
  • Loading branch information
iShibi and ImRodry committed Sep 28, 2021
1 parent 60aa9ae commit c5db0ff
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/structures/MessageAttachment.js
Expand Up @@ -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;
}

/**
Expand Down
1 change: 1 addition & 0 deletions typings/index.d.ts
Expand Up @@ -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;
Expand Down

0 comments on commit c5db0ff

Please sign in to comment.