summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--api/src/routes/guilds/#guild_id/members/#member_id/index.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/src/routes/guilds/#guild_id/members/#member_id/index.ts b/api/src/routes/guilds/#guild_id/members/#member_id/index.ts
index 18a6ed4b..24c74af7 100644
--- a/api/src/routes/guilds/#guild_id/members/#member_id/index.ts
+++ b/api/src/routes/guilds/#guild_id/members/#member_id/index.ts
@@ -61,8 +61,8 @@ router.put("/", route({}), async (req: Request, res: Response) => {
 	var stickers = await Sticker.find({
 		where: { guild_id: guild_id }	});
 	
-	res.send({...guild, emojis: emoji, roles: roles, stickers: stickers});
 	await Member.addToGuild(member_id, guild_id);
+	res.send({...guild, emojis: emoji, roles: roles, stickers: stickers});
 });
 
 router.delete("/", route({ permission: "KICK_MEMBERS" }), async (req: Request, res: Response) => {