1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-10 12:42:44 +01:00

fix the wrong name

This commit is contained in:
Erkin Alp Güney 2022-06-26 14:42:06 +03:00 committed by GitHub
parent a034698970
commit cecd9f6e82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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");