diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-08-28 22:13:12 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-08-28 22:13:12 -0400 |
commit | aae5a99e1acab8b290d4dcfc762d591ed3a55f60 (patch) | |
tree | bd374ab8207ef40e47ab25cedb2d9f66b94c6a2b | |
parent | 14eb0e617b084080c4cffc5b781b311c65c5f928 (diff) | |
download | tanzanite-aae5a99e1acab8b290d4dcfc762d591ed3a55f60.tar.gz tanzanite-aae5a99e1acab8b290d4dcfc762d591ed3a55f60.tar.bz2 tanzanite-aae5a99e1acab8b290d4dcfc762d591ed3a55f60.zip |
no error spam
-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 }) }); |