mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-25 10:25:01 +00:00
Update backend/src/plugins/Utility/commands/CleanCmd.ts
Co-authored-by: Almeida <almeidx@pm.me>
This commit is contained in:
parent
2ad03267a5
commit
64a02c0eb2
1 changed files with 4 additions and 4 deletions
|
@ -37,10 +37,10 @@ export async function cleanMessages(
|
|||
|
||||
const chunks = chunkArray(idsToDelete, 100);
|
||||
await Promise.all(
|
||||
chunks.map(async (chunk) => {
|
||||
await channel.bulkDelete(chunk);
|
||||
await pluginData.state.savedMessages.markBulkAsDeleted(chunk);
|
||||
}),
|
||||
chunks.map((chunk) => Promise.all([
|
||||
channel.bulkDelete(chunk),
|
||||
pluginData.state.savedMessages.markBulkAsDeleted(chunk),
|
||||
]),
|
||||
);
|
||||
|
||||
// Create an archive
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue