-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement interactive deletion #18
Comments
Is this occurring with the full deletion method? |
Yes, it's the only deletion method I use. EDIT: Very, very rarely, there may be only one or two forbidden replies for weird messages. Maybe the channel should be skipped at 10 forbidden replies. |
I see. "Full" deletion will probably be deprecated soon as it doesn't work as intended. Discord's API won't allow messages to be deleted from a channel if you're not a member anymore. That's why it's sending |
I see, that's what I thought too, seeing several many year old messages of long-left servers. I'm extensively using the blacklist though (in fact, modified the code to have a commented list in Python of channel IDs I want to skip). I'd need that for "partial" deletion mode too, so I stick to my "extended" black list code for now. If one was allowed to dream a bit here, the blacklisting would be interactive, retrieving all channels deletable first, displaying them with their name and then allowing you to select them before actually starting deletion. |
I like the idea of a prompt that asks what should be deleted. I'd probably add a Although, it might become irritating if you need to repeatedly run a deletion selectively. Any further thoughts? |
About the channel selection, it would be "best" (but a lot more work to add) to have a real list to move through with your cursor (or UI), to set it all up, and then just kick off the deletion and lean back - continually having to check back whether the next channel is about to be deleted to acknowledge it may be a bit tiresome. Maybe found channels can be written to a file channels.ini/json/whatevs, and configured in there, so you can reuse this "configuration" file for later runs. That would also remove the need for a UI-like list as mentioned in my first paragraph. |
At least to my experience, if you receive a "Forbidden" result on a channel, trying to delete any message from that channel will fail in Forbidden.
To speed up the script, the remainder of the channel should be skipped then.
The text was updated successfully, but these errors were encountered: