From 0cab1494a5af7e7219e7452e9cf554e7dabe8b5a Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Tue, 20 Feb 2018 03:43:41 +0000 Subject: [PATCH] Still errors, 1MB limit --- package.json | 2 +- types/image.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 2e58e963..2a05008f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "65.3.1", + "version": "65.3.2", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": { diff --git a/types/image.js b/types/image.js index d6a9943c..a65b4fdc 100644 --- a/types/image.js +++ b/types/image.js @@ -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; }