1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-10 04:32:35 +01:00

Merge pull request #1045 from erkinalp/patch-2

Rename the guild feature `INVITES_CLOSED` to `INVITES_DISABLED`
This commit is contained in:
Madeline 2023-08-11 10:52:15 +10:00 committed by GitHub
commit 139d31e938
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -97,7 +97,7 @@ router.post(
"Only intended for the staff of this server.", "Only intended for the staff of this server.",
401, 401,
); );
if (features.includes("INVITES_CLOSED")) if (features.includes("INVITES_DISABLED"))
throw new HTTPError("Sorry, this guild has joins closed.", 403); throw new HTTPError("Sorry, this guild has joins closed.", 403);
const invite = await Invite.joinGuild(req.user_id, code); const invite = await Invite.joinGuild(req.user_id, code);