From 6bdb57e2add2b73370679942f8475e550599a4b0 Mon Sep 17 00:00:00 2001 From: Toast <96593068+AnxietyisReal@users.noreply.github.com> Date: Sun, 13 Aug 2023 12:24:39 +1000 Subject: [PATCH] Update index.ts --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 5e4bcfd..a5323af 100644 --- a/src/index.ts +++ b/src/index.ts @@ -33,7 +33,7 @@ function DZ(error:Error, type:string){// Yes, I may have shiternet but I don't n if ([ 'getaddrinfo ENOTFOUND discord.com', 'getaddrinfo EAI_AGAIN discord.com', '[Error: 30130000:error:0A000410:SSL', '[Error: F8200000:error:0A000410:SSL', - 'HTTPError: Internal Server Error' + 'HTTPError: Internal Server Error', 'ExperimentalWarning: ' ].includes(error.message)) return; console.error(error); (client.channels.resolve(client.config.mainServer.channels.errors) as Discord.TextChannel | null)?.send({embeds: [new client.embed().setColor('#560000').setTitle('Error caught!').setFooter({text: 'Error type: ' + type}).setDescription(`**Error:**\n\`\`\`${error.message}\`\`\`**Stack:**\n\`\`\`${`${error.stack}`.slice(0, 2500)}\`\`\``)]})