2MB image limit

This commit is contained in:
Daniel Odendahl Jr
2018-02-20 03:30:37 +00:00
parent 85d6da09bf
commit 25f0d79987
+1 -1
View File
@@ -12,7 +12,7 @@ class ImageArgumentType extends ArgumentType {
return valid;
}
if (!attachment.height || !attachment.width) return false;
if (attachment.size > 4e+6) return false;
if (attachment.size > 2e+6) return false;
return true;
}