From 10913988b932bb6c69afe24087ee3a3966b6627b Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Sat, 7 Aug 2021 21:49:58 +0200 Subject: [PATCH] :bug: fix vanity url --- src/routes/guilds/#guild_id/vanity-url.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/guilds/#guild_id/vanity-url.ts b/src/routes/guilds/#guild_id/vanity-url.ts index 30c98d19..06311a28 100644 --- a/src/routes/guilds/#guild_id/vanity-url.ts +++ b/src/routes/guilds/#guild_id/vanity-url.ts @@ -10,7 +10,7 @@ router.get("/", async (req: Request, res: Response) => { const guild = await GuildModel.findOne({ id: guild_id }).exec(); if (!guild.vanity_url) throw new HTTPError("This guild has no vanity url", 204); - return res.json({ vanity_url: guild.vanity_url }); + return res.json({ vanity_url: guild.vanity_url.code }); }); export default router;