From d4cbbf068ea5339a369a35ff257265b11f671693 Mon Sep 17 00:00:00 2001 From: toast-ts <96593068+toast-ts@users.noreply.github.com> Date: Tue, 20 Jun 2023 16:01:18 +1000 Subject: [PATCH] DNS.. please... --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index ef8dcf7..f099c08 100644 --- a/src/index.ts +++ b/src/index.ts @@ -27,7 +27,7 @@ client.on('ready', async()=>{ // Handle errors function DZ(error:Error, location:string){// 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; + if (['ENOTFOUND discord.com', 'EAI_AGAIN discord.com'].includes(error.message)) return; //console.error(error); const channel = client.channels.resolve(client.config.mainServer.channels.errors) as Discord.TextChannel | null; channel?.send({embeds: [new client.embed().setColor('#420420').setTitle('Error caught!').setFooter({text: location}).setDescription(`**Error:** \`${error.message}\`\n\n**Stack:** \`${`${error.stack}`.slice(0, 2500)}\``)]})