diff --git a/server/index.ts b/server/index.ts index f93aa9e7..abd59528 100644 --- a/server/index.ts +++ b/server/index.ts @@ -993,6 +993,7 @@ export function createServer() { } const result = await response.json(); + console.log("[Discord] Commands registered successfully:", result.length); res.setHeader("Content-Type", "application/json"); return res.json({ ok: true, @@ -1000,10 +1001,11 @@ export function createServer() { commands: result, }); } catch (e: any) { - console.error("[Discord] Exception registering commands:", e); + console.error("[Discord] Exception registering commands:", e.message, e.stack); res.setHeader("Content-Type", "application/json"); return res.status(500).json({ error: e?.message || "Failed to register commands", + details: process.env.NODE_ENV === "development" ? e?.stack : undefined, }); } });