diff --git a/src/structures/MessageAttachment.js b/src/structures/MessageAttachment.js index a8d74ee67..90ae4bbc2 100644 --- a/src/structures/MessageAttachment.js +++ b/src/structures/MessageAttachment.js @@ -66,13 +66,13 @@ class MessageAttachment { * The height of this attachment (if an image or video) * @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) * @type {?number} */ - this.width = data.width; + this.width = typeof data.width !== 'undefined' ? data.width : null; } toJSON() {