summaryrefslogtreecommitdiff
path: root/packages/gateway/src/commands/start.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/gateway/src/commands/start.ts')
-rw-r--r--packages/gateway/src/commands/start.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/gateway/src/commands/start.ts b/packages/gateway/src/commands/start.ts
index 9b8beb5..d93df5f 100644
--- a/packages/gateway/src/commands/start.ts
+++ b/packages/gateway/src/commands/start.ts
@@ -1,5 +1,6 @@
import { Message } from "discord.js";
import { sendProgressUpdate, executeBulkRoleAssignment } from "./utilities";
+import { logUnexpectedDiscordAPIError } from "../utilities";
export const handleStartCommand = async (message: Message) => {
if (message.author.bot) return;
@@ -68,7 +69,7 @@ export const handleStartCommand = async (message: Message) => {
channelId,
categoryId,
).catch((error) => {
- console.error("Bulk role assignment failed:", error);
+ logUnexpectedDiscordAPIError(error);
sendProgressUpdate(
message.client,
"❌ Bulk role assignment failed due to an error",