summary refs log tree commit diff
path: root/src/routes
diff options
context:
space:
mode:
authorIntevel ツ <59223342+Intevel@users.noreply.github.com>2021-05-08 16:52:11 +0200
committerIntevel ツ <59223342+Intevel@users.noreply.github.com>2021-05-08 16:52:11 +0200
commit6b1205c2fcb31f48bed50ec5dd62d268d5c48bcd (patch)
treecda892a8a9360bfde21102c6f28a72b14e8b6620 /src/routes
parentUpdate index.ts (diff)
downloadserver-6b1205c2fcb31f48bed50ec5dd62d268d5c48bcd.tar.xz
Update index.ts
Diffstat (limited to 'src/routes')
-rw-r--r--src/routes/guilds/#guild_id/index.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/routes/guilds/#guild_id/index.ts b/src/routes/guilds/#guild_id/index.ts
index 4fd29f3d..18e6372e 100644
--- a/src/routes/guilds/#guild_id/index.ts
+++ b/src/routes/guilds/#guild_id/index.ts
@@ -90,7 +90,7 @@ router.get("/vanity-url", async (req: Request, res: Response) => {
 
 	if(!guild.vanity_url) throw new HTTPError("This guild has no vanity url", 204)
 
-	return res.json(toObject(guild.vanity_url));
+	return res.json(guild.vanity_url);
 });
 
 export default router;