pvpcraft icon indicating copy to clipboard operation
pvpcraft copied to clipboard

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

Open InjuredWolf opened this issue 7 years ago • 3 comments

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.

InjuredWolf avatar Aug 04 '17 04:08 InjuredWolf

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.

macdja38 avatar Aug 05 '17 05:08 macdja38

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.

InjuredWolf avatar Aug 31 '17 04:08 InjuredWolf

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.

macdja38 avatar Aug 31 '17 04:08 macdja38