diff options
author | Intevel ツ <59223342+Intevel@users.noreply.github.com> | 2021-05-08 13:53:06 +0200 |
---|---|---|
committer | Intevel ツ <59223342+Intevel@users.noreply.github.com> | 2021-05-08 13:53:06 +0200 |
commit | a05dd51a2f0149a07c108511e646cc9d9fd60eb0 (patch) | |
tree | 7f32e56cfd252d5886784877efe794c1b872bb57 /src | |
parent | Update members.ts (diff) | |
download | server-a05dd51a2f0149a07c108511e646cc9d9fd60eb0.tar.xz |
Update members.ts
Diffstat (limited to 'src')
-rw-r--r-- | src/routes/guilds/#guild_id/members.ts | 2 |
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); |