From e480c094aa51d8c2737bc175c0878a8ec2ab105f Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Mon, 15 Jun 2020 16:07:24 -0400 Subject: [PATCH] Fix --- types/image.js | 1 - 1 file changed, 1 deletion(-) diff --git a/types/image.js b/types/image.js index c430614c..68d86e83 100644 --- a/types/image.js +++ b/types/image.js @@ -10,7 +10,6 @@ module.exports = class ImageArgumentType extends ArgumentType { async validate(value, msg, arg) { const attachment = msg.attachments.first(); if (attachment) { - if (!attachment.height || !attachment.width) return false; if (attachment.size > 8e+6) return 'Please provide an image under 8 MB.'; if (!fileTypeRe.test(attachment.name)) return 'Please only send PNG, JPG, BMP, or GIF format images.'; return true;