Open JavidPack opened 5 years ago
.oops deleting the message above would be very useful, especially for unglobal tags. Also, delete the .oops command after 2 seconds or something
I don't think the overhead would be that bad. Create a new ReplyAsync
in BotModuleBase
that calls the original ReplyAsync
whilst indexing a static Dictionary<ulong, ulong>
. The 'oops' command would have easy access to the dictionary. I don't think it even has to be concurrent.
I like the idea of an .oops command, it can definitely be made. The easiest way to do this is just save the command output in a short lived cache, and allow up to 30 seconds for example to use it. However, nowadays discord also support buttons. Im not sure a privately seen button can be added to messages that are viewable by everyone, but it is worth looking into
It has been suggested that the user who requested a tag or search can trigger the tag to be deleted. The suggestion was to react to the message with X emoji. I was also thinking an .oops command could also undo a mod command.
This would require remembering a user to last requested message mapping.