aboutsummaryrefslogtreecommitdiff
path: root/src/listeners
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-08-25 15:14:26 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-08-25 15:14:26 -0400
commit95dc4c4a4abeed75f419c9ccd5b3f072609c5035 (patch)
tree35c81380a3f93e1001ea0142f1f26ab7392f3e73 /src/listeners
parent0af0be5ab4ea0d972d9c406b28b81ee41a06cbdb (diff)
downloadtanzanite-95dc4c4a4abeed75f419c9ccd5b3f072609c5035.tar.gz
tanzanite-95dc4c4a4abeed75f419c9ccd5b3f072609c5035.tar.bz2
tanzanite-95dc4c4a4abeed75f419c9ccd5b3f072609c5035.zip
increase depth
Diffstat (limited to 'src/listeners')
-rw-r--r--src/listeners/commands/commandError.ts31
1 files changed, 15 insertions, 16 deletions
diff --git a/src/listeners/commands/commandError.ts b/src/listeners/commands/commandError.ts
index 5db4e1e..029394d 100644
--- a/src/listeners/commands/commandError.ts
+++ b/src/listeners/commands/commandError.ts
@@ -94,29 +94,28 @@ export default class CommandErrorListener extends BushListener {
if (options.message?.util?.parsed?.content)
description.push(`**Command Content:** ${options.message.util.parsed.content}`);
}
+ const inspectOptions = {
+ showHidden: false,
+ depth: 4,
+ colors: false,
+ customInspect: true,
+ showProxy: false,
+ maxArrayLength: Infinity,
+ maxStringLength: Infinity,
+ breakLength: 80,
+ compact: 3,
+ sorted: false,
+ getters: true
+ };
for (const element in options.error) {
if (['stack', 'name', 'message'].includes(element)) continue;
else {
description.push(
`**Error ${util.capitalizeFirstLetter(element)}:** ${
typeof (options.error as any)[element] === 'object'
- ? `[haste](${await util.inspectCleanRedactHaste((options.error as any)[element])})`
+ ? `[haste](${await util.inspectCleanRedactHaste((options.error as any)[element], inspectOptions)})`
: '`' +
- 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
- })
- ) +
+ util.discord.escapeInlineCode(util.inspectAndRedact((options.error as any)[element], inspectOptions)) +
'`'
}`
);