From 710c1b9cc95d4f9cc5a437952c4cf89eca3f16cd Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Sat, 31 Jul 2021 22:46:32 -0400 Subject: misc fixes --- src/listeners/other/promiseRejection.ts | 2 ++ src/listeners/other/uncaughtException.ts | 2 ++ 2 files changed, 4 insertions(+) (limited to 'src/listeners/other') diff --git a/src/listeners/other/promiseRejection.ts b/src/listeners/other/promiseRejection.ts index f2623c6..ed0d35d 100644 --- a/src/listeners/other/promiseRejection.ts +++ b/src/listeners/other/promiseRejection.ts @@ -9,11 +9,13 @@ export default class PromiseRejectionListener extends BushListener { } public override async exec(error: Error): Promise { + // eslint-disable-next-line @typescript-eslint/no-base-to-string void client.console.error('PromiseRejection', `An unhanded promise rejection occurred:\n${error?.stack || error}`, false); void client.console.channelError({ embeds: [ { title: 'Unhandled promise rejection', + // eslint-disable-next-line @typescript-eslint/no-base-to-string 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 76afab9..045e524 100644 --- a/src/listeners/other/uncaughtException.ts +++ b/src/listeners/other/uncaughtException.ts @@ -9,11 +9,13 @@ export default class UncaughtExceptionListener extends BushListener { } public override async exec(error: Error): Promise { + // eslint-disable-next-line @typescript-eslint/no-base-to-string void client.console.error('uncaughtException', `An uncaught exception occurred:\n${error?.stack || error}`, false); void client.console.channelError({ embeds: [ { title: 'An uncaught exception occurred', + // eslint-disable-next-line @typescript-eslint/no-base-to-string fields: [{ name: 'error', value: await util.codeblock(`${error?.stack || error}`, 1024, 'js') }], color: util.colors.error } -- cgit