From cca0b7a03bcd61af12b7f9bff51276f6c70beeb3 Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Mon, 26 Jul 2021 18:45:31 -0400 Subject: refactor: this.client.util -> util --- src/listeners/other/promiseRejection.ts | 4 ++-- src/listeners/other/uncaughtException.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/listeners/other') diff --git a/src/listeners/other/promiseRejection.ts b/src/listeners/other/promiseRejection.ts index 460d849..da6480c 100644 --- a/src/listeners/other/promiseRejection.ts +++ b/src/listeners/other/promiseRejection.ts @@ -14,8 +14,8 @@ export default class PromiseRejectionListener extends BushListener { embeds: [ { title: 'Unhandled promise rejection', - fields: [{ name: 'error', value: await this.client.util.codeblock(`${error?.stack || error}`, 1024, 'js') }], - color: this.client.util.colors.error + fields: [{ name: 'error', value: await util.codeblock(`${error?.stack || error}`, 1024, 'js') }], + color: util.colors.error } ] }); diff --git a/src/listeners/other/uncaughtException.ts b/src/listeners/other/uncaughtException.ts index 91d0a56..1bb57c1 100644 --- a/src/listeners/other/uncaughtException.ts +++ b/src/listeners/other/uncaughtException.ts @@ -14,8 +14,8 @@ export default class UncaughtExceptionListener extends BushListener { embeds: [ { title: 'An uncaught exception occurred', - fields: [{ name: 'error', value: await this.client.util.codeblock(`${error?.stack || error}`, 1024, 'js') }], - color: this.client.util.colors.error + fields: [{ name: 'error', value: await util.codeblock(`${error?.stack || error}`, 1024, 'js') }], + color: util.colors.error } ] }); -- cgit