From 21a589c2f64187fd4c92c871299d9b597173f98d Mon Sep 17 00:00:00 2001 From: Erkin Alp Güney Date: Thu, 27 Apr 2023 18:28:00 +0300 Subject: Rename the guild feature to match discord.com discord.com has this too, and it is called `INVITES_DISABLED` --- src/api/routes/invites/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/api/routes/invites/index.ts b/src/api/routes/invites/index.ts index 6680e375..8bff2200 100644 --- a/src/api/routes/invites/index.ts +++ b/src/api/routes/invites/index.ts @@ -65,7 +65,7 @@ router.post( "Only intended for the staff of this server.", 401, ); - if (features.includes("INVITES_CLOSED")) + if (features.includes("INVITES_DISABLED")) throw new HTTPError("Sorry, this guild has joins closed.", 403); const invite = await Invite.joinGuild(req.user_id, code); -- cgit 1.4.1