Rename the guild feature to match discord.com
discord.com has this too, and it is called `INVITES_DISABLED`
This commit is contained in:
parent
eb62028103
commit
21a589c2f6
@ -65,7 +65,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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user