summaryrefslogtreecommitdiff
path: root/packages/gateway/src/commands/react.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/gateway/src/commands/react.ts')
-rw-r--r--packages/gateway/src/commands/react.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/gateway/src/commands/react.ts b/packages/gateway/src/commands/react.ts
index 08e5822..bbe1fe9 100644
--- a/packages/gateway/src/commands/react.ts
+++ b/packages/gateway/src/commands/react.ts
@@ -1,5 +1,5 @@
import { Message } from "discord.js";
-import { replyWithCleanup } from "../utilities";
+import { logUnexpectedDiscordAPIError, replyWithCleanup } from "../utilities";
export const handleReactCommand = async (message: Message) => {
if (message.author.bot) return;
@@ -94,7 +94,7 @@ export const handleReactCommand = async (message: Message) => {
results.push(`Added ${emoji}`);
}
} catch (error) {
- console.error(`Error processing emoji ${emoji}:`, error);
+ logUnexpectedDiscordAPIError(error);
errors.push(emoji);
}
}
@@ -108,7 +108,7 @@ export const handleReactCommand = async (message: Message) => {
await replyWithCleanup(message, resultMessage);
} catch (error) {
- console.error("Error toggling reactions:", error);
+ logUnexpectedDiscordAPIError(error);
await replyWithCleanup(
message,
"❌ Failed to toggle reactions on the message.",