refactor: new node features (#5132)

Co-authored-by: Antonio Román <kyradiscord@gmail.com>
This commit is contained in:
Sugden
2021-06-30 21:40:33 +01:00
committed by GitHub
parent f108746c15
commit 1e8f01253e
68 changed files with 305 additions and 360 deletions

View File

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