mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 16:43:31 +01:00
refactor: new node features (#5132)
Co-authored-by: Antonio Román <kyradiscord@gmail.com>
This commit is contained in:
@@ -72,13 +72,13 @@ class MessageAttachment {
|
||||
* The height of this attachment (if an image or video)
|
||||
* @type {?number}
|
||||
*/
|
||||
this.height = typeof data.height !== 'undefined' ? data.height : null;
|
||||
this.height = data.height ?? null;
|
||||
|
||||
/**
|
||||
* The width of this attachment (if an image or video)
|
||||
* @type {?number}
|
||||
*/
|
||||
this.width = typeof data.width !== 'undefined' ? data.width : null;
|
||||
this.width = data.width ?? null;
|
||||
|
||||
/**
|
||||
* This media type of this attachment
|
||||
|
||||
Reference in New Issue
Block a user