diff options
Diffstat (limited to 'src')
-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 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); |