From 2449d0b85916ca649794b2094b7c5ffe42775030 Mon Sep 17 00:00:00 2001 From: Thesourtimes Date: Thu, 6 Jan 2022 22:14:00 +0300 Subject: Correct the invite response --- api/src/routes/invites/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'api/src/routes') 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); -- cgit 1.4.1