fix: incr in all case deleted counter
This commit is contained in:
parent
4af081904b
commit
528b15d147
@ -130,9 +130,6 @@ async function main() {
|
||||
// Delete the message
|
||||
await deleteMessage(channelData.id, message.ID)
|
||||
.then(async () => {
|
||||
// Incrémenter totalDeleted lorsqu'un message est supprimé avec succès
|
||||
totalDeleted++;
|
||||
|
||||
messagesDeletedFile.push({
|
||||
channel_id: channelData.id,
|
||||
message_id: message.ID,
|
||||
@ -165,6 +162,8 @@ async function main() {
|
||||
}
|
||||
});
|
||||
|
||||
totalDeleted++;
|
||||
|
||||
// Don't spam the API
|
||||
await wait(secondsDelay * 1000);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user