From a59bec3c6e5fa6228c30fd89e6def4c316bd90bb Mon Sep 17 00:00:00 2001 From: 5jiji Date: Sun, 29 Oct 2023 00:34:01 +0200 Subject: [PATCH] Fix errorConverter --- src/util/errorConverter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/errorConverter.ts b/src/util/errorConverter.ts index 3a21a86..d6cc2ef 100755 --- a/src/util/errorConverter.ts +++ b/src/util/errorConverter.ts @@ -17,7 +17,7 @@ export function errorToEmbed(error: unknown, description: string): APIEmbed { inline: true }, { name: "From", - value: `${error.stack}`, + value: `${typeof error.stack === "string" ? error.stack.slice(0, 1024) : error.stack}`, inline: true }]) }