diff options
Diffstat (limited to 'src/api/routes/guilds/#guild_id/members/#member_id/index.ts')
-rw-r--r-- | src/api/routes/guilds/#guild_id/members/#member_id/index.ts | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/api/routes/guilds/#guild_id/members/#member_id/index.ts b/src/api/routes/guilds/#guild_id/members/#member_id/index.ts index a14691f2..814c8f8b 100644 --- a/src/api/routes/guilds/#guild_id/members/#member_id/index.ts +++ b/src/api/routes/guilds/#guild_id/members/#member_id/index.ts @@ -16,21 +16,21 @@ along with this program. If not, see <https://www.gnu.org/licenses/>. */ -import { Request, Response, Router } from "express"; +import { route } from "@spacebar/api"; import { - Member, - getPermission, - getRights, - Role, - GuildMemberUpdateEvent, emitEvent, - Sticker, Emoji, + getPermission, + getRights, Guild, + GuildMemberUpdateEvent, handleFile, + Member, MemberChangeSchema, + Role, + Sticker, } from "@spacebar/util"; -import { route } from "@spacebar/api"; +import { Request, Response, Router } from "express"; const router = Router(); @@ -47,7 +47,7 @@ router.get("/", route({}), async (req: Request, res: Response) => { router.patch( "/", - route({ body: "MemberChangeSchema" }), + route({ requestBody: "MemberChangeSchema" }), async (req: Request, res: Response) => { const { guild_id } = req.params; const member_id = |