diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-08-24 15:58:13 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-08-24 15:58:13 -0400 |
commit | 423fb144a0209c7acb74dc756faa37e19b7aa905 (patch) | |
tree | 0b1af0e794efabf51ee0f86c3b56cd66627f619a /src/listeners/commands | |
parent | 9390b3f59b18dc3576f9c169c8fc586be14bcdc5 (diff) | |
download | tanzanite-423fb144a0209c7acb74dc756faa37e19b7aa905.tar.gz tanzanite-423fb144a0209c7acb74dc756faa37e19b7aa905.tar.bz2 tanzanite-423fb144a0209c7acb74dc756faa37e19b7aa905.zip |
some fixes and hacky fetch member work arround
Diffstat (limited to 'src/listeners/commands')
-rw-r--r-- | src/listeners/commands/commandError.ts | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/src/listeners/commands/commandError.ts b/src/listeners/commands/commandError.ts index 85cd465..5db4e1e 100644 --- a/src/listeners/commands/commandError.ts +++ b/src/listeners/commands/commandError.ts @@ -101,7 +101,23 @@ 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])})` - : '`' + util.discord.escapeInlineCode(util.inspectAndRedact((options.error as any)[element])) + '`' + : '`' + + util.discord.escapeInlineCode( + util.inspectAndRedact((options.error as any)[element], { + showHidden: false, + depth: 3, + colors: false, + customInspect: true, + showProxy: false, + maxArrayLength: Infinity, + maxStringLength: Infinity, + breakLength: 80, + compact: 3, + sorted: false, + getters: true + }) + ) + + '`' }` ); } |