diff options
-rw-r--r-- | src/api/routes/invites/index.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/routes/invites/index.ts b/src/api/routes/invites/index.ts index 6de4d583..28a3b429 100644 --- a/src/api/routes/invites/index.ts +++ b/src/api/routes/invites/index.ts @@ -97,7 +97,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); |