summary refs log tree commit diff
path: root/api/src/routes/guilds/#guild_id/channels.ts
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2022-08-12 11:42:34 +0200
committerTheArcaneBrony <myrainbowdash949@gmail.com>2022-08-13 21:57:51 +0200
commit1f4ba6395bf96237fd8b638fd70926b887b9c374 (patch)
tree3ee4145490ff392837eb979b72843f6e8c90cbda /api/src/routes/guilds/#guild_id/channels.ts
parentSplit schemas into files in util (diff)
downloadserver-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.ts4
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;