From 46e5079eafffd43d1ed6c801665125d2218d7459 Mon Sep 17 00:00:00 2001 From: Skylar Grant Date: Thu, 1 Oct 2026 15:28:03 -0400 Subject: [PATCH] Add client to sendAlert --- dot-commands/request.js | 2 +- functions.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dot-commands/request.js b/dot-commands/request.js index 1bf7f82..e25644f 100644 --- a/dot-commands/request.js +++ b/dot-commands/request.js @@ -23,7 +23,7 @@ module.exports = { message.reply({ embeds: [ replyEmbed ]}); const errorEmbed = fn.embeds.error(`An error has occurred in command ${this.name}:\n${JSON.stringify(err)}`); - fn.sendAlert(errorEmbed); + fn.sendAlert(errorEmbed, message.client); } }, }; \ No newline at end of file diff --git a/functions.js b/functions.js index 5fb910e..3ea1706 100644 --- a/functions.js +++ b/functions.js @@ -921,7 +921,7 @@ const functions = { const errorId = digits.join(""); return errorId; }, - async sendAlert(embed) { + async sendAlert(embed, client) { const statusChannel = await client.channels.fetch(statusChannelId) .catch(err => { console.error(err);