aboutsummaryrefslogtreecommitdiff
path: root/src/listeners/other
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-07-26 22:53:27 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-07-26 22:53:27 -0400
commit7990abdb511eeec2a114b124a3628b10bfefc342 (patch)
treec9cc92439bb0b8385e8fcd82c169fd6f86bb1974 /src/listeners/other
parent80d5b5b11ae261945dc725a0a80115922003afcf (diff)
downloadtanzanite-7990abdb511eeec2a114b124a3628b10bfefc342.tar.gz
tanzanite-7990abdb511eeec2a114b124a3628b10bfefc342.tar.bz2
tanzanite-7990abdb511eeec2a114b124a3628b10bfefc342.zip
chore: add new eslint rule
Diffstat (limited to 'src/listeners/other')
-rw-r--r--src/listeners/other/promiseRejection.ts4
-rw-r--r--src/listeners/other/uncaughtException.ts4
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',