diff options
Diffstat (limited to 'src/listeners/other')
-rw-r--r-- | src/listeners/other/promiseRejection.ts | 4 | ||||
-rw-r--r-- | src/listeners/other/uncaughtException.ts | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/listeners/other/promiseRejection.ts b/src/listeners/other/promiseRejection.ts index 204e43a..e0a62c0 100644 --- a/src/listeners/other/promiseRejection.ts +++ b/src/listeners/other/promiseRejection.ts @@ -9,8 +9,8 @@ export default class PromiseRejectionListener extends BushListener { } public async exec(error: Error): Promise<void> { - client.console.error('PromiseRejection', `An unhanded promise rejection occurred:\n${error?.stack || error}`, false); - client.console.channelError({ + void client.console.error('PromiseRejection', `An unhanded promise rejection occurred:\n${error?.stack || error}`, false); + void client.console.channelError({ embeds: [ { title: 'Unhandled promise rejection', diff --git a/src/listeners/other/uncaughtException.ts b/src/listeners/other/uncaughtException.ts index 651fefe..f1714f7 100644 --- a/src/listeners/other/uncaughtException.ts +++ b/src/listeners/other/uncaughtException.ts @@ -9,8 +9,8 @@ export default class UncaughtExceptionListener extends BushListener { } public async exec(error: Error): Promise<void> { - client.console.error('uncaughtException', `An uncaught exception occurred:\n${error?.stack || error}`, false); - client.console.channelError({ + void client.console.error('uncaughtException', `An uncaught exception occurred:\n${error?.stack || error}`, false); + void client.console.channelError({ embeds: [ { title: 'An uncaught exception occurred', |