summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-08-11 10:52:15 +1000
committerGitHub <noreply@github.com>2023-08-11 10:52:15 +1000
commit139d31e938c281c3963ec2db668af67957048f43 (patch)
treee9fcccbb267b69a566b0b18e149d4bc57973a562 /src
parentImplement community "create one for me" (diff)
parentRename the guild feature to match discord.com (diff)
downloadserver-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.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 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);