diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2023-08-11 10:52:15 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-11 10:52:15 +1000 |
commit | 139d31e938c281c3963ec2db668af67957048f43 (patch) | |
tree | e9fcccbb267b69a566b0b18e149d4bc57973a562 /src | |
parent | Implement community "create one for me" (diff) | |
parent | Rename the guild feature to match discord.com (diff) | |
download | server-139d31e938c281c3963ec2db668af67957048f43.tar.xz |
Merge pull request #1045 from erkinalp/patch-2
Rename the guild feature `INVITES_CLOSED` to `INVITES_DISABLED`
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 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); |