Error deleting messages through index.json #576
Unanswered
ghost
asked this question in
Bugs and Issues
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Undiscord seems to fail to delete messages from inside servers when loading the index.json from messages folder. While that is expected, if your messages .json has any server channels, it will hang an inconsiderably long ammout of time every time the archive wipe tries to search erroneously a server channel as if it was a DM. Ive read the code and understood how it's done.
loading a .json will always set
@me
in server id, and during search, right on the beginning of the function we have this....but it will totally fail a search if the corresponding channel is NOT a DM. since it can either not exist or be a DM you are not part of, this approach ends in a catastrophic halt... while i see how this could be expected behavior, my use case is a batch of 648 jobs to do, and in my tests so far, the batch delete just hang on the first job because, as it turns out, it is a Server Channel and the search, and the entire job just dies on the spot. Editing my .json making so that the first entry IS a dm i know i'm a part of, the first job ran without issues, but quickly it hang again on the second which happened to be a Server Channel yet again...
any ideas of when that will be fixed, giving the archive wipe the possibility to delete from both servers and dms? OR at least a fix where instead of just hanging forever we defer to the next job automatically?
it would also be useful to have a way to skip "null" DMs, DMs in the .json that seem to not exist anymore for whatever unknown reason
Beta Was this translation helpful? Give feedback.
All reactions