This commit is contained in:
Flam3rboy
2021-09-04 11:26:47 +02:00
16 changed files with 177 additions and 52 deletions
@@ -50,7 +50,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
+1 -1
View File
@@ -14,7 +14,7 @@ import { HTTPError } from "lambert-server";
import { check } from "../../../util/instanceOf";
import { RoleModifySchema, RolePositionUpdateSchema } from "../../../schema/Roles";
import { DiscordApiErrors } from "../../../util/Constants";
import { DiscordApiErrors } from "@fosscord/util";
import { In } from "typeorm";
const router: Router = Router();