summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorErkin Alp Güney <erkinalp9035@gmail.com>2023-04-27 18:28:00 +0300
committerGitHub <noreply@github.com>2023-04-27 18:28:00 +0300
commit21a589c2f64187fd4c92c871299d9b597173f98d (patch)
tree7e59abadd0a7a6dc5390067fd6f770d1d8e8bf46 /src
parentstart listening before starting components in bundle (diff)
downloadserver-21a589c2f64187fd4c92c871299d9b597173f98d.tar.xz
Rename the guild feature to match discord.com
discord.com has this too, and it is called `INVITES_DISABLED`
Diffstat (limited to 'src')
-rw-r--r--src/api/routes/invites/index.ts2
1 files changed, 1 insertions, 1 deletions
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);