From 5d359e815a253087fd4dbdec02b9c65d1dac9fe4 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Mon, 20 Oct 2025 22:37:26 -0700 Subject: feat(gateway): Begin migrating console logs to shared logging framework --- packages/gateway/src/commands/role.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'packages/gateway/src/commands/role.ts') diff --git a/packages/gateway/src/commands/role.ts b/packages/gateway/src/commands/role.ts index f0cbb29..3144aae 100644 --- a/packages/gateway/src/commands/role.ts +++ b/packages/gateway/src/commands/role.ts @@ -1,5 +1,5 @@ import { Message } from "discord.js"; -import { replyWithCleanup } from "../utilities"; +import { logUnexpectedDiscordAPIError, replyWithCleanup } from "../utilities"; export const handleRoleCommand = async (message: Message) => { if (message.author.bot) return; @@ -134,7 +134,7 @@ export const handleRoleCommand = async (message: Message) => { `✅ ${actionText} for **${targetUser.username}** in **${guild.name}**.`, ); } catch (error) { - console.error("Error in role command:", error); + logUnexpectedDiscordAPIError(error); await replyWithCleanup( message, "❌ Failed to manage role. Check bot permissions and try again.", -- cgit v1.2.3