diff options
author | TheArcaneBrony <myrainbowdash949@gmail.com> | 2022-08-12 11:42:34 +0200 |
---|---|---|
committer | TheArcaneBrony <myrainbowdash949@gmail.com> | 2022-08-13 21:57:51 +0200 |
commit | 1f4ba6395bf96237fd8b638fd70926b887b9c374 (patch) | |
tree | 3ee4145490ff392837eb979b72843f6e8c90cbda /api/src/routes/guilds/#guild_id/channels.ts | |
parent | Split schemas into files in util (diff) | |
download | server-1f4ba6395bf96237fd8b638fd70926b887b9c374.tar.xz |
Forgot some schemas, removed no longer used paths from generate schema script
Diffstat (limited to 'api/src/routes/guilds/#guild_id/channels.ts')
-rw-r--r-- | api/src/routes/guilds/#guild_id/channels.ts | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/api/src/routes/guilds/#guild_id/channels.ts b/api/src/routes/guilds/#guild_id/channels.ts index df1b7924..8f2d3643 100644 --- a/api/src/routes/guilds/#guild_id/channels.ts +++ b/api/src/routes/guilds/#guild_id/channels.ts @@ -1,5 +1,5 @@ import { Router, Response, Request } from "express"; -import { Channel, ChannelUpdateEvent, getPermission, emitEvent, ChannelModifySchema } from "@fosscord/util"; +import { Channel, ChannelUpdateEvent, getPermission, emitEvent, ChannelModifySchema, ChannelReorderSchema } from "@fosscord/util"; import { HTTPError } from "@fosscord/util"; import { route } from "@fosscord/api"; const router = Router(); @@ -21,8 +21,6 @@ router.post("/", route({ body: "ChannelModifySchema", permission: "MANAGE_CHANNE res.status(201).json(channel); }); -export type ChannelReorderSchema = { id: string; position?: number; lock_permissions?: boolean; parent_id?: string }[]; - router.patch("/", route({ body: "ChannelReorderSchema", permission: "MANAGE_CHANNELS" }), async (req: Request, res: Response) => { // changes guild channel position const { guild_id } = req.params; |