From ad56fc2779f0cf3e8fcefca158fa067cacf7a7af Mon Sep 17 00:00:00 2001 From: toast-ts <96593068+toast-ts@users.noreply.github.com> Date: Thu, 19 Jan 2023 15:41:10 +1100 Subject: [PATCH] Update DZ function --- src/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index b9ec9bf..56d2736 100644 --- a/src/index.ts +++ b/src/index.ts @@ -43,7 +43,8 @@ client.on('ready', async()=>{ }) // Handle errors -function DZ(error:Error){ +function DZ(error:Error){// Yes, I may have shiternet but I don't need to wake up to like a hundred messages or so. + if (['getaddrinfo ENOTFOUND discord.com'].includes(error.message)) return; console.log(error); (client.channels.resolve(client.config.mainServer.channels.errors) as Discord.TextChannel).send({embeds: [new client.embed().setColor('#420420').setTitle('Error caught!').setDescription(`**Error:** \`${error.message}\`\n\n**Stack:** \`${`${error.stack}`.slice(0, 2500)}\``)]}) }