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
commitcecd9f6e827f71054201a4a7784aaf15b1aa800a (patch)
treed1e137d2dcb60f2bbc613b6d8e77cef33f07d469
parentself-leave logic (diff)
downloadserver-cecd9f6e827f71054201a4a7784aaf15b1aa800a.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");