From 3c2b1b16a9afa2155a552d790fdb74f67cecaa33 Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Mon, 29 Aug 2022 21:33:48 -0400 Subject: more error exceptions --- src/listeners/other/promiseRejection.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/listeners/other/promiseRejection.ts b/src/listeners/other/promiseRejection.ts index 4435f4c..876e014 100644 --- a/src/listeners/other/promiseRejection.ts +++ b/src/listeners/other/promiseRejection.ts @@ -26,7 +26,8 @@ export default class PromiseRejectionListener extends BotListener { ); if ( !error.message.includes('reason: getaddrinfo ENOTFOUND canary.discord.com') && - !error.message.includes('Expected token to be set for this request, but none was present') + !error.message.includes('Expected token to be set for this request, but none was present') && + !error.message.includes('Connection terminated unexpectedly') ) { void this.client.console.channelError({ embeds: await generateErrorEmbed(this.client, { type: 'unhandledRejection', error: error }) -- cgit