1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-11 13:14:06 +01:00

Update members.ts

This commit is contained in:
Intevel ツ 2021-05-08 13:53:06 +02:00
parent 3d79ed6a6b
commit a05dd51a2f

View File

@ -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);