mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 15:07:42 +02:00
Fix
This commit is contained in:
+1
-1
@@ -11,7 +11,7 @@ module.exports = class ImageArgumentType extends ArgumentType {
|
||||
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 or JPG format images.';
|
||||
if (!fileTypeRe.test(attachment.name)) return 'Please only send PNG, JPG, or GIF format images.';
|
||||
return true;
|
||||
}
|
||||
return this.client.registry.types.get('user').validate(value, msg, arg);
|
||||
|
||||
Reference in New Issue
Block a user