mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 11:33:30 +01:00
cleanup: use null over undefined (#2810)
This commit is contained in:
@@ -66,13 +66,13 @@ class MessageAttachment {
|
|||||||
* The height of this attachment (if an image or video)
|
* The height of this attachment (if an image or video)
|
||||||
* @type {?number}
|
* @type {?number}
|
||||||
*/
|
*/
|
||||||
this.height = data.height;
|
this.height = typeof data.height !== 'undefined' ? data.height : null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The width of this attachment (if an image or video)
|
* The width of this attachment (if an image or video)
|
||||||
* @type {?number}
|
* @type {?number}
|
||||||
*/
|
*/
|
||||||
this.width = data.width;
|
this.width = typeof data.width !== 'undefined' ? data.width : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
toJSON() {
|
toJSON() {
|
||||||
|
|||||||
Reference in New Issue
Block a user