mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 15:07:42 +02:00
Still errors, 1MB limit
This commit is contained in:
+1
-1
@@ -12,7 +12,7 @@ class ImageArgumentType extends ArgumentType {
|
||||
return valid;
|
||||
}
|
||||
if (!attachment.height || !attachment.width) return false;
|
||||
if (attachment.size > 2e+6) return false;
|
||||
if (attachment.size > 1000000) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user