rainestormee / jda-command

A light and fast command library for making bots in JDA.
https://rainestormee.github.io/jda-command/
Apache License 2.0
3 stars 1 forks source link

Slash-command support #21

Open Andre601 opened 3 years ago

Andre601 commented 3 years ago

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.

rainestormee commented 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.