mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-24 02:15:10 +02:00
Limit images to 4MB
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "xiao",
|
"name": "xiao",
|
||||||
"version": "65.3.0",
|
"version": "65.3.1",
|
||||||
"description": "Your personal server companion.",
|
"description": "Your personal server companion.",
|
||||||
"main": "Xiao.js",
|
"main": "Xiao.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
+1
-1
@@ -12,7 +12,7 @@ class ImageArgumentType extends ArgumentType {
|
|||||||
return valid;
|
return valid;
|
||||||
}
|
}
|
||||||
if (!attachment.height || !attachment.width) return false;
|
if (!attachment.height || !attachment.width) return false;
|
||||||
if (attachment.size > 8e+6) return false;
|
if (attachment.size > 4e+6) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user