Open Andre601 opened 3 years ago
I will be looking into this shortly, thank you for raising this issue. I will attempt implementing using this library from an end-user's point of view with trying to implement slash commands and then work from there.
Thank you for submitting this report, I knew slash commands were being implemented into Discord but I didn't know what the current implementation status was on them.
JDA is currently in the progress of adding support for Discord's Slash commands. See https://github.com/DV8FromTheWorld/JDA/pull/1501 for the current state and noteworthy info.
I feel like JDA-Command should consider looking at a way to natively support slash commands from JDA. I don't say you should work on something straight away, but more like thinking about what changes might be necessary to make supporting (and especially handling), slash commands easy.
I myself tried to implement support for slash-commands using the AbstractCommand class, but it's rather difficult to achieve, especially since we only have an Event here rather than a distinct entity (i.e. Message) to go from. Especially having a proper way for supporting Command options or similar could be a major complication here.
So, I open this issue here to start an initial discussion on what jda-command could or should do to provide proper support as a command framework for Slash-commands, as I doubt that with the support from JDA, you would have a simple and good way of handling commands the way you can do in jda-command.