From df8e33e1286291886b7132fa4d219a7cb647d896 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Fri, 23 Mar 2018 17:18:15 +0000 Subject: [PATCH] Doesn't need to be async --- types/image.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/image.js b/types/image.js index 78792353..d2bcd59c 100644 --- a/types/image.js +++ b/types/image.js @@ -5,7 +5,7 @@ class ImageArgumentType extends ArgumentType { super(client, 'image'); } - async validate(value, msg) { + validate(value, msg) { const attachment = msg.attachments.first(); if (!attachment || !attachment.height || !attachment.width) return false; if (attachment.size > 8e+6) return 'Please provide an image under 8 MB.';