summary refs log tree commit diff
path: root/src/routes/guilds/#id/channels.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/routes/guilds/#id/channels.ts')
-rw-r--r--src/routes/guilds/#id/channels.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/routes/guilds/#id/channels.ts b/src/routes/guilds/#id/channels.ts

index df41ec41..cd03fdbb 100644 --- a/src/routes/guilds/#id/channels.ts +++ b/src/routes/guilds/#id/channels.ts
@@ -6,14 +6,14 @@ import { check } from "../../../util/instanceOf"; const router = Router(); router.get("/", async (req, res) => { - const guild_id = BigInt(req.params.id); + const guild_id = (req.params.id); const channels = await ChannelModel.find({ guild_id }).lean().exec(); res.json(channels); }); router.post("/", check(ChannelModifySchema), async (req, res) => { - const guild_id = BigInt(req.params.id); + const guild_id = (req.params.id); const body = req.body as ChannelModifySchema; if (!body.permission_overwrites) body.permission_overwrites = []; if (!body.topic) body.topic = "";