From 18267b8a0aa6acd4ba93d696507da1978b650629 Mon Sep 17 00:00:00 2001 From: Bsian Date: Tue, 12 May 2020 17:27:12 +0100 Subject: [PATCH] depth 0 --- src/class/Util.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/class/Util.ts b/src/class/Util.ts index f40b212..829f496 100644 --- a/src/class/Util.ts +++ b/src/class/Util.ts @@ -41,7 +41,7 @@ export default class Util { cmd.stdout.on('data', writeFunction); cmd.stderr.on('data', writeFunction); cmd.on('error', writeFunction); - cmd.on('error', (e) => this.client.getDMChannel('253600545972027394').then((c) => c.createMessage(inspect(e)))); + cmd.on('error', (e) => this.client.getDMChannel('253600545972027394').then((c) => c.createMessage(inspect(e, { depth: 0 })))); cmd.once('close', (code, signal) => { cmd.stdout.off('data', writeFunction); cmd.stderr.off('data', writeFunction);