summary refs log tree commit diff
path: root/api/src
diff options
context:
space:
mode:
authorThesourtimes <cckhmck@gmail.com>2022-01-06 22:14:00 +0300
committerThesourtimes <cckhmck@gmail.com>2022-01-06 22:14:00 +0300
commit2449d0b85916ca649794b2094b7c5ffe42775030 (patch)
tree778e3f7ec7aee60d4a9bed390275c47b95c7319e /api/src
parentAdd Role Icons (#574) (diff)
downloadserver-2449d0b85916ca649794b2094b7c5ffe42775030.tar.xz
Correct the invite response
Diffstat (limited to 'api/src')
-rw-r--r--api/src/routes/invites/index.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/src/routes/invites/index.ts b/api/src/routes/invites/index.ts
index a2cf4cb5..ac813126 100644
--- a/api/src/routes/invites/index.ts
+++ b/api/src/routes/invites/index.ts
@@ -19,7 +19,7 @@ router.post("/:code", route({}), async (req: Request, res: Response) => {
 	const { features } = await Guild.findOneOrFail({ id: guild_id});
 	const { public_flags } = await User.findOneOrFail({ id: req.user_id });
 	
-	if(features.includes("INTERNAL_EMPLOYEE_ONLY") && (public_flags & 1) !== 1) throw new HTTPError("You are not allowed to join this guild.", 401)
+	if(features.includes("INTERNAL_EMPLOYEE_ONLY") && (public_flags & 1) !== 1) throw new HTTPError("The Maze isn't meant for you.", 401)
 	
 	const invite = await Invite.joinGuild(req.user_id, code);