diff options
-rw-r--r-- | src/listeners/other/promiseRejection.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/listeners/other/promiseRejection.ts b/src/listeners/other/promiseRejection.ts index b56cef9..8ee73fe 100644 --- a/src/listeners/other/promiseRejection.ts +++ b/src/listeners/other/promiseRejection.ts @@ -24,7 +24,10 @@ export default class PromiseRejectionListener extends BotListener { `An unhanded promise rejection occurred:\n${formatError(error, true)}`, false ); - if (!error.message.includes('reason: getaddrinfo ENOTFOUND canary.discord.com')) + 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') + ) void this.client.console.channelError({ embeds: await generateErrorEmbed(this.client, { type: 'unhandledRejection', error: error }) }); |