mirror of
https://github.com/spacebarchat/server.git
synced 2026-12-03 07:14:08 +00:00
replace '@me' with req.user_id in guild join
This commit is contained in:
1 parent
89da09f152
commit
78f348ea0b
1 file changed
+2
-1
@@ -51,7 +51,8 @@ router.patch("/", check(MemberChangeSchema), async (req: Request, res: Response)
|
||||
});
|
||||
|
||||
router.put("/", async (req: Request, res: Response) => {
|
||||
const { guild_id, member_id } = req.params;
|
||||
let { guild_id, member_id } = req.params;
|
||||
if (member_id === "@me") member_id = req.user_id;
|
||||
|
||||
throw new HTTPError("Maintenance: Currently you can't add a member", 403);
|
||||
// TODO: only for oauth2 applications
|
||||
|
||||
Reference in new issue
Block a user