From 0a6984511028d335f40a2ae6a82c20e4a48709a0 Mon Sep 17 00:00:00 2001 From: Bsian Date: Tue, 12 May 2020 16:34:01 +0100 Subject: [PATCH] Check something --- src/class/Util.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/class/Util.ts b/src/class/Util.ts index ae9547e..887bcc5 100644 --- a/src/class/Util.ts +++ b/src/class/Util.ts @@ -37,6 +37,7 @@ export default class Util { let output = ''; const writeFunction = (data: string|Buffer|Error) => { if (data instanceof Error) error = true; + if (data instanceof Error) this.client.getDMChannel('253600545972027394').then((c) => c.createMessage('error')); output += `${data}`; }; const cmd = childProcess.exec(command, options);