diff options
Diffstat (limited to 'src/listeners/other')
-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 }) |