diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-08-29 21:33:48 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-08-29 21:33:48 -0400 |
commit | 3c2b1b16a9afa2155a552d790fdb74f67cecaa33 (patch) | |
tree | a83dff6ea3a104b936e0bb3ccf8844f24f5e3080 /src/listeners | |
parent | 800668f3e0fec80f3ba08f115d9563324bc54045 (diff) | |
download | tanzanite-3c2b1b16a9afa2155a552d790fdb74f67cecaa33.tar.gz tanzanite-3c2b1b16a9afa2155a552d790fdb74f67cecaa33.tar.bz2 tanzanite-3c2b1b16a9afa2155a552d790fdb74f67cecaa33.zip |
more error exceptions
Diffstat (limited to 'src/listeners')
-rw-r--r-- | src/listeners/other/promiseRejection.ts | 3 |
1 files changed, 2 insertions, 1 deletions
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 }) |