aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/listeners/commands/commandError.ts5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/listeners/commands/commandError.ts b/src/listeners/commands/commandError.ts
index ba27706..78bb165 100644
--- a/src/listeners/commands/commandError.ts
+++ b/src/listeners/commands/commandError.ts
@@ -143,9 +143,8 @@ export default class CommandErrorListener extends BushListener {
description.push(...options.haste);
- embed
- .addField({ name: 'Stack Trace', value: options.stack.substring(0, 1024) })
- .setDescription(description.join('\n').substring(0, 4000));
+ embed.addField({ name: 'Stack Trace', value: options.stack.substring(0, 1024) });
+ if (description.length) embed.setDescription(description.join('\n').substring(0, 4000));
if (options.type === 'command-dev' || options.type === 'command-log')
embed.setTitle(`${options.isSlash ? 'Slash ' : ''}CommandError #\`${options.errorNum}\``);