From 87bc8c6b893cabe5384b11b744d820d27e3d5c6a Mon Sep 17 00:00:00 2001 From: Toast <96593068+AnxietyisReal@users.noreply.github.com> Date: Thu, 12 Jan 2023 07:40:25 +1100 Subject: [PATCH] why is the wrong color here? --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 1da686f..edd7fd0 100644 --- a/src/index.ts +++ b/src/index.ts @@ -45,7 +45,7 @@ client.on('ready', async()=>{ // Handle errors function DZ(error:Error){ console.log(error); - (client.channels.resolve(client.config.mainServer.channels.errors) as Discord.TextChannel).send({embeds: [new client.embed().setColor('#EC5254').setTitle('Error caught!').setDescription(`**Error:** \`${error.message}\`\n\n**Stack:** \`${`${error.stack}`.slice(0, 2500)}\``)]}) + (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)}\``)]}) } process.on('unhandledRejection', async(error: Error)=>{ DZ(error)