Skip to content
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

Feature Request: Purge command can do messages before a certain time (with relativity), and with keyword #39

Open
InjuredWolf opened this issue Aug 4, 2017 · 3 comments

Comments

@InjuredWolf
Copy link

I use an automatic Warframe Alerts feed, but it fills up over time with irrelevant alerts as they expire. There is currently no way to exclusively clear messages before a certain time. Could you add this?

Alternatively or additionally, within the Warframe alerts feed, a way to auto-clear alerts once they expire (get the time they were made, the time left, and once it hits it, it deletes the message) would be much appreciated.

@macdja38
Copy link
Owner

macdja38 commented Aug 5, 2017

Right now purge can purge before a certain message id, time is not not practical for two reasons:

  1. messages have to be traversed till that time is reached
  2. not all that use-full anyway because discord disallows deleting messages older than 2 weeks.

Alerts being cleared upon expiring is something that I may consider, potentially a different issue would be a better place for that. I'll decide over the next few days.

@InjuredWolf
Copy link
Author

Is there no way to pick a relative time, say, since an hour ago, etc, find the id of the first message before that time, and go from there? Haven't looked at the discord api, don't know the full extent of what is and isn't possible.

@macdja38
Copy link
Owner

the bot uses the message id to request the messages, it's not really possible to do based on time without just requesting starting at the current message and going back.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants