Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 4 commits into from Sep 28, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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 ?? null;
iShibi marked this conversation as resolved.
Show resolved Hide resolved
}

/**
Expand Down
1 change: 1 addition & 0 deletions typings/index.d.ts
Expand Up @@ -1267,6 +1267,7 @@ export class MessageAttachment {

public attachment: BufferResolvable | Stream;
public contentType: string | null;
public ephemeral: boolean | null;
public height: number | null;
public id: Snowflake;
public name: string | null;
Expand Down