cedws / discord-delete

Tool to delete Discord message history
GNU General Public License v3.0
125 stars 18 forks source link

Tool reports no more messages to delete for guild while thousands remain #58

Open RandyRandom opened 1 year ago

RandyRandom commented 1 year ago

I'm using the latest Windows executable and currently I'm unable to delete my server messages in one go.

The tools deletes on the first run, or after a restart with enough elapsed time, 25 messages from the guild and after that it reports no messages left in the guild and skips to the next. A manual search in Discord shows that this is untrue and thousands of messages still remain in this guild. I have to wait 1 or 2 minutes before restarting the deletion so that Discord has time to repopulate the search results. Without this delay it finds only few messages or none for deletion.

I also observed when I do a manual deletion while searching my messages, it takes some time to update the search results on the first search page and in the meantime it shows no messages at all. If I select the second or third search page it displays my remaining messages just fine.

So currently I'm stuck with stopping and restarting the deletion every few minutes or doing all by hand.

Edit: I already had the same problem 1 month ago, but luckily on that occasion it fixed itself in the following days. So this problem is only sporadic and somehow related to the responsiveness of the Discord search.

cedws commented 1 year ago

Needs investigation, it sounds like this is an issue with Discord's backend returning empty results?

RandyRandom commented 1 year ago

Pretty much. When I do a search with my messages on the server it shows empty results for the first page after I did a deletion run. When I select the second page it shows my remaining messages just fine. Only the first page of the search results is affected and empty. I don't know if it would help to implement a deeper search?