summary refs log tree commit diff
path: root/api/src/routes/guilds/#guild_id/members/#member_id/nick.ts
diff options
context:
space:
mode:
Diffstat (limited to 'api/src/routes/guilds/#guild_id/members/#member_id/nick.ts')
-rw-r--r--api/src/routes/guilds/#guild_id/members/#member_id/nick.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/api/src/routes/guilds/#guild_id/members/#member_id/nick.ts b/api/src/routes/guilds/#guild_id/members/#member_id/nick.ts
index 5784b5d5..e4308364 100644
--- a/api/src/routes/guilds/#guild_id/members/#member_id/nick.ts
+++ b/api/src/routes/guilds/#guild_id/members/#member_id/nick.ts
@@ -17,8 +17,8 @@ router.patch("/", check(MemberNickChangeSchema), async (req: Request, res: Respo
 	const perms = await getPermission(req.user_id, guild_id);
 	perms.hasThrow(permissionString);
 
-	await changeNickname(member_id, guild_id, req.body.nickname);
-	res.status(204);
+	await changeNickname(member_id, guild_id, req.body.nick);
+	res.status(200).send();
 });
 
 export default router;