diff options
-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}\``); |