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:
parent
3d79ed6a6b
commit
a05dd51a2f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user