summaryrefslogtreecommitdiff
path: root/packages/gateway/src/commands/role.ts
diff options
context:
space:
mode:
authorFuwn <[email protected]>2025-10-20 22:37:26 -0700
committerFuwn <[email protected]>2025-10-20 22:37:26 -0700
commit5d359e815a253087fd4dbdec02b9c65d1dac9fe4 (patch)
tree13f87094d6f02610145703c05b19fb0e79c2060c /packages/gateway/src/commands/role.ts
parentfeat(shared:log): Improve unit logging (diff)
downloadumabotdiscord-5d359e815a253087fd4dbdec02b9c65d1dac9fe4.tar.xz
umabotdiscord-5d359e815a253087fd4dbdec02b9c65d1dac9fe4.zip
feat(gateway): Begin migrating console logs to shared logging framework
Diffstat (limited to 'packages/gateway/src/commands/role.ts')
-rw-r--r--packages/gateway/src/commands/role.ts4
1 files changed, 2 insertions, 2 deletions
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.",