summary refs log tree commit diff
diff options
context:
space:
mode:
-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");