Coder Social home page Coder Social logo

Implement interactive deletion about discord-delete HOT 6 OPEN

cedws avatar cedws commented on September 27, 2024
Implement interactive deletion

from discord-delete.

Comments (6)

RayKoopa avatar RayKoopa commented on September 27, 2024 1

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.

from discord-delete.

cedws avatar cedws commented on September 27, 2024

Is this occurring with the full deletion method?

from discord-delete.

RayKoopa avatar RayKoopa commented on September 27, 2024

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.

from discord-delete.

cedws avatar cedws commented on September 27, 2024

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 Forbidden. Hence, there's not really a difference between partial and full deletion except that downloading a data archive might allow you hackily select what channels to delete messages from.
I would recommend proceeding by using the partial deletion mode, and ensuring that all messages are deleted from a channel before you leave.

from discord-delete.

RayKoopa avatar RayKoopa commented on September 27, 2024

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.

from discord-delete.

cedws avatar cedws commented on September 27, 2024

I like the idea of a prompt that asks what should be deleted. I'd probably add a -y flag though to auto-answer "yes" to any prompts, kind of like how fsck does it.

Although, it might become irritating if you need to repeatedly run a deletion selectively. Any further thoughts?

from discord-delete.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.