From 78974aba85b116362616f9d59a840d6d26f3edea Mon Sep 17 00:00:00 2001 From: GhomKrosmonaute Date: Sat, 7 Oct 2023 14:10:20 +0200 Subject: [PATCH] updated db command --- src/commands/database.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/database.ts b/src/commands/database.ts index cd2e7115..d80e4315 100644 --- a/src/commands/database.ts +++ b/src/commands/database.ts @@ -39,13 +39,13 @@ export default new app.Command({ const copy = result.slice() - while (JSON.stringify(copy, null, 2).length > 4050) { + while (JSON.stringify(copy, null, 2).length > 4049) { copy.splice(copy.indexOf("..."), 1) copy.push("...") } return JSON.stringify(copy) - })(result), + })(result).slice(0, 4050), }) ) .setFooter(`Result of : ${query}`),