diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-02-02 22:07:30 -0500 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-02-02 22:07:30 -0500 |
commit | 0e098085921f3a2f67e05aef76ca7ccbc869e203 (patch) | |
tree | 91d0a4c995ab464222c9fc9ec53d4fe750ed8772 | |
parent | ca788f0b06aca34d86ea433f022406d5152d09c4 (diff) | |
download | tanzanite-0e098085921f3a2f67e05aef76ca7ccbc869e203.tar.gz tanzanite-0e098085921f3a2f67e05aef76ca7ccbc869e203.tar.bz2 tanzanite-0e098085921f3a2f67e05aef76ca7ccbc869e203.zip |
fix command error edge cases
-rw-r--r-- | src/listeners/commands/commandError.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/listeners/commands/commandError.ts b/src/listeners/commands/commandError.ts index bd1ae7d..6f1c097 100644 --- a/src/listeners/commands/commandError.ts +++ b/src/listeners/commands/commandError.ts @@ -143,7 +143,9 @@ export default class CommandErrorListener extends BushListener { description.push(...options.haste); - embed.addField({ name: 'Stack Trace', value: options.stack }).setDescription(description.join('\n')); + embed + .addField({ name: 'Stack Trace', value: options.stack.substring(0, 1024) }) + .setDescription(description.join('\n').substring(0, 4000)); if (options.type === 'command-dev' || options.type === 'command-log') embed.setTitle(`${options.isSlash ? 'Slash ' : ''}CommandError #\`${options.errorNum}\``); |