Repository navigation
Command-system pr - #37
Conversation
|
While I originally wanted to add functionality so it's easier to work with slash-command permissions. Current way slash-command permissions work is shit, and Discord has confirmed on reworking them. So anyone is free to create it, but most likely you will have to revamp it when the reworked permission system comes. |
illuminator3
left a comment
There was a problem hiding this comment.
Please apply our formatting by running gradle spotlessApply :)
d3vel0per
left a comment
There was a problem hiding this comment.
Apart from the added review comments. I think extracting out some of very large lambdas into well named functions will aid in readability as well as testability.
|
I'll accept after 2 reviews, not the required 2 since I find this really important. |
You'll have to quote some exact lambdas, I find it myself readable and maintainable this way. |
|
Kudos, SonarCloud Quality Gate passed! |
|
2 things need to be fixed atm Naming of the AvstractCommand is incorrect and bad, alternatives? Docs mention using the interface still |
Added Command and AbstractCommand for commands to extend. Added CommandExample and SubCommandExample as examples/guides for people/animals that want to create a command. Added the CommandHandler that actually handles the command Added the ReloadCommand so you can reload commands Added the CommandHandler to the EventListeners in Application.java
30666e1 to
5ed98e8
Compare
I-Al-Istannen
left a comment
There was a problem hiding this comment.
Looks good for now, we'll see where we might need to take it :)
It's no longer relevant, spotlessApply has been run.








This will be the main PR for the command-system.
See the relating issue #10 for more information.
There's still a few things we have to do, therefor:
more in the future..