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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Intevel ツ
						Intevel ツ