Doesn't need to be async

This commit is contained in:
Daniel Odendahl Jr
2018-03-23 17:18:15 +00:00
parent 081f1aa1fd
commit df8e33e128
+1 -1
View File
@@ -5,7 +5,7 @@ class ImageArgumentType extends ArgumentType {
super(client, 'image'); super(client, 'image');
} }
async validate(value, msg) { validate(value, msg) {
const attachment = msg.attachments.first(); const attachment = msg.attachments.first();
if (!attachment || !attachment.height || !attachment.width) return false; if (!attachment || !attachment.height || !attachment.width) return false;
if (attachment.size > 8e+6) return 'Please provide an image under 8 MB.'; if (attachment.size > 8e+6) return 'Please provide an image under 8 MB.';