mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Doesn't need to be async
This commit is contained in:
+1
-1
@@ -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.';
|
||||
|
||||
Reference in New Issue
Block a user