Skip to content

Commit

Permalink
fix: error channel id env var name
Browse files Browse the repository at this point in the history
  • Loading branch information
Guilhermeasper committed Aug 24, 2024
1 parent a2fedc8 commit 7aac90d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/utils/errorHandling.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}\`\`\``);
}

0 comments on commit 7aac90d

Please sign in to comment.