Update purge.ts
This commit is contained in:
parent
8f5d673b84
commit
0101e62075
@ -30,9 +30,9 @@ export interface PurgeSchema {
|
|||||||
after: string
|
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?
|
TODO: apply the delete bit by bit to prevent client and database stress
|
||||||
// https://discord.com/developers/docs/resources/channel#bulk-delete-messages
|
**/
|
||||||
router.post("/", route({ /*body: "PurgeSchema",*/ }), async (req: Request, res: Response) => {
|
router.post("/", route({ /*body: "PurgeSchema",*/ }), async (req: Request, res: Response) => {
|
||||||
const { channel_id } = req.params;
|
const { channel_id } = req.params;
|
||||||
const channel = await Channel.findOneOrFail({ id: channel_id });
|
const channel = await Channel.findOneOrFail({ id: channel_id });
|
||||||
|
Loading…
x
Reference in New Issue
Block a user