summaryrefslogtreecommitdiff
path: root/packages/gateway/src/commands/sayc.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/gateway/src/commands/sayc.ts')
-rw-r--r--packages/gateway/src/commands/sayc.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/gateway/src/commands/sayc.ts b/packages/gateway/src/commands/sayc.ts
index eafb2f1..2c8a28c 100644
--- a/packages/gateway/src/commands/sayc.ts
+++ b/packages/gateway/src/commands/sayc.ts
@@ -1,5 +1,5 @@
import { Message } from "discord.js";
-import { replyWithCleanup } from "../utilities";
+import { logUnexpectedDiscordAPIError, replyWithCleanup } from "../utilities";
export const handleSaycCommand = async (message: Message): Promise<boolean> => {
if (message.author.bot) return false;
@@ -41,7 +41,7 @@ export const handleSaycCommand = async (message: Message): Promise<boolean> => {
return true;
} catch (error) {
- console.error("Error in sayc command:", error);
+ logUnexpectedDiscordAPIError(error);
await replyWithCleanup(
message,
"❌ Failed to send message to the specified channel.",