diff --git a/api/routes/guilds.ts b/api/routes/guilds.ts index 730d6a7..96c7f16 100644 --- a/api/routes/guilds.ts +++ b/api/routes/guilds.ts @@ -11,9 +11,8 @@ app.get("/", hasRank(Rank.USER), async (req: AuthenticatedRequest, res: Response res.json(guilds .filter((guild) => guild.owner || (guild.permissions && (guild.permissions & 0x8))) .map((guild) => ({id: guild.id, name: guild.name, icon: guild.icon}))); - }).catch((e) => { - console.log(e) - res.status(500).json({message: "An internal error occurred"}) + }).catch(() => { + res.status(500).json({message: "An internal error occurred"}); }); });