diff options
author | Erkin Alp Güney <erkinalp9035@gmail.com> | 2022-05-15 00:16:50 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-15 00:16:50 +0300 |
commit | 0101e62075d5c24207598f74734706475394c8b0 (patch) | |
tree | 31408484d63bcd8d37799e11973bb4ddbbdaf186 /api | |
parent | Update MessageFlags.ts (diff) | |
download | server-0101e62075d5c24207598f74734706475394c8b0.tar.xz |
Update purge.ts
Diffstat (limited to 'api')
-rw-r--r-- | api/src/routes/channels/#channel_id/purge.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/api/src/routes/channels/#channel_id/purge.ts b/api/src/routes/channels/#channel_id/purge.ts index 8a87c379..28b52b50 100644 --- a/api/src/routes/channels/#channel_id/purge.ts +++ b/api/src/routes/channels/#channel_id/purge.ts @@ -30,9 +30,9 @@ export interface PurgeSchema { after: string } -// TODO: should users be able to bulk delete messages or only bots? -// TODO: should this request fail, if you provide messages older than 14 days/invalid ids? -// https://discord.com/developers/docs/resources/channel#bulk-delete-messages +/** +TODO: apply the delete bit by bit to prevent client and database stress +**/ router.post("/", route({ /*body: "PurgeSchema",*/ }), async (req: Request, res: Response) => { const { channel_id } = req.params; const channel = await Channel.findOneOrFail({ id: channel_id }); |