mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
feat(MessageAttachment): support for #contentType (#5481)
Co-authored-by: Jan <66554238+vaporox@users.noreply.github.com>
This commit is contained in:
@@ -79,6 +79,12 @@ class MessageAttachment {
|
||||
* @type {?number}
|
||||
*/
|
||||
this.width = typeof data.width !== 'undefined' ? data.width : null;
|
||||
|
||||
/**
|
||||
* This media type of this attachment
|
||||
* @type {?string}
|
||||
*/
|
||||
this.contentType = data.content_type ?? null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
1
typings/index.d.ts
vendored
1
typings/index.d.ts
vendored
@@ -1061,6 +1061,7 @@ declare module 'discord.js' {
|
||||
constructor(attachment: BufferResolvable | Stream, name?: string, data?: object);
|
||||
|
||||
public attachment: BufferResolvable | Stream;
|
||||
public contentType: string | null;
|
||||
public height: number | null;
|
||||
public id: Snowflake;
|
||||
public name: string | null;
|
||||
|
||||
Reference in New Issue
Block a user