From 7aac90d70f481b1d9998839ff0af220643a9258f Mon Sep 17 00:00:00 2001 From: Guilherme Afonso Date: Sat, 24 Aug 2024 18:17:02 -0300 Subject: [PATCH] fix: error channel id env var name --- src/utils/errorHandling.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/utils/errorHandling.ts b/src/utils/errorHandling.ts index 501daf4..dabe335 100644 --- a/src/utils/errorHandling.ts +++ b/src/utils/errorHandling.ts @@ -58,6 +58,8 @@ async function sendErrorMessage( description: string ) { await ( - client.channels.cache.get(process.env.ERROR_CHANNEL_ID || '') as TextChannel + client.channels.cache.get( + process.env.MARQUINHOS_ERROR_CHANNEL_ID || '' + ) as TextChannel )?.send(`### ⚠️⚠️⚠️ ${title} ⚠️⚠️⚠️\n\n\`\`\`ansi\n${description}\`\`\``); }