summary refs log tree commit diff
diff options
context:
space:
mode:
authorErkin Alp Güney <erkinalp9035@gmail.com>2022-06-26 14:42:06 +0300
committerGitHub <noreply@github.com>2022-06-26 14:42:06 +0300
commitd94d94aa3cc4ab0358e5ef5c78764238fce3e3d8 (patch)
tree20d1e74279e29b82e298760cb752fea854b0181e
parentself-leave logic (diff)
downloadserver-d94d94aa3cc4ab0358e5ef5c78764238fce3e3d8.tar.xz
fix the wrong name
-rw-r--r--api/src/routes/guilds/#guild_id/members/#member_id/index.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/src/routes/guilds/#guild_id/members/#member_id/index.ts b/api/src/routes/guilds/#guild_id/members/#member_id/index.ts
index 756b8955..38f2a529 100644
--- a/api/src/routes/guilds/#guild_id/members/#member_id/index.ts
+++ b/api/src/routes/guilds/#guild_id/members/#member_id/index.ts
@@ -83,7 +83,7 @@ router.delete("/", route(), async (req: Request, res: Response) => {
 	const rights = await getRights(req.user_id);
 	if (member_id !== "@me" || member_id === req.user_id) {
 		// TODO: unless force-joined
-		rights.hasThrow("SELF_LEAVE_GUILDS");
+		rights.hasThrow("SELF_LEAVE_GROUPS");
 	} else {
 		rights.hasThrow("KICK_BAN_MEMBERS");
 		permission.hasThrow("KICK_MEMBERS");