diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-09-02 19:49:21 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-09-02 19:49:21 -0400 |
commit | 29cebebc18e9570b699caef8ebb04f4d3934722d (patch) | |
tree | 15a47fb5bea3839098d7700b48ad0f8b33eb13fa /src/listeners/commands | |
parent | 39927eb63081eb8120f75ad38bc336bb48d0f2a7 (diff) | |
download | tanzanite-29cebebc18e9570b699caef8ebb04f4d3934722d.tar.gz tanzanite-29cebebc18e9570b699caef8ebb04f4d3934722d.tar.bz2 tanzanite-29cebebc18e9570b699caef8ebb04f4d3934722d.zip |
clean up
Diffstat (limited to 'src/listeners/commands')
-rw-r--r-- | src/listeners/commands/commandError.ts | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/listeners/commands/commandError.ts b/src/listeners/commands/commandError.ts index d24c0f0..bde74f0 100644 --- a/src/listeners/commands/commandError.ts +++ b/src/listeners/commands/commandError.ts @@ -30,7 +30,7 @@ export default class CommandErrorListener extends BushListener { `${isSlash ? 'slashC' : 'c'}ommandError`, `an error occurred with the <<${command}>> ${isSlash ? 'slash ' : ''}command in <<${channel}>> triggered by <<${ message?.author?.tag - }>>:\n` + error?.stack || error, + }>>:\n${error?.stack}` || error, false ); @@ -115,9 +115,7 @@ export default class CommandErrorListener extends BushListener { `**Error ${util.capitalizeFirstLetter(element)}:** ${ typeof (options.error as any)[element] === 'object' ? `[haste](${await util.inspectCleanRedactHaste((options.error as any)[element], inspectOptions)})` - : '`' + - util.discord.escapeInlineCode(util.inspectAndRedact((options.error as any)[element], inspectOptions)) + - '`' + : `\`${util.discord.escapeInlineCode(util.inspectAndRedact((options.error as any)[element], inspectOptions))}\`` }` ); } |