summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorIntevel ツ <59223342+Intevel@users.noreply.github.com>2021-05-08 13:53:06 +0200
committerIntevel ツ <59223342+Intevel@users.noreply.github.com>2021-05-08 13:53:06 +0200
commita05dd51a2f0149a07c108511e646cc9d9fd60eb0 (patch)
tree7f32e56cfd252d5886784877efe794c1b872bb57 /src
parentUpdate members.ts (diff)
downloadserver-a05dd51a2f0149a07c108511e646cc9d9fd60eb0.tar.xz
Update members.ts
Diffstat (limited to 'src')
-rw-r--r--src/routes/guilds/#guild_id/members.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/routes/guilds/#guild_id/members.ts b/src/routes/guilds/#guild_id/members.ts
index 005a4142..657f4064 100644
--- a/src/routes/guilds/#guild_id/members.ts
+++ b/src/routes/guilds/#guild_id/members.ts
@@ -86,7 +86,7 @@ router.patch("/:member_id/nick", async (req: Request, res: Response) => {
 	if(!req.body.nickname) throw new HTTPError("No nickname defined", 404);
 
 	const perms = await getPermission(member_id, guild_id);
-	perms.hasThrow("CHANGE_NICKNAME");
+	perms.hasThrow("MANAGE_NICKNAMES");
 
 	await changeNickname(member_id, guild_id, req.body.nickname);
 	res.status(204);