summary refs log tree commit diff
diff options
context:
space:
mode:
-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);