Main class is
SlashCommandManager.java
It takes an instance of the JDA class as parameters
- To start the listener, you need to call the
.listen()
- To add a command, call the
.addCommand(SlashCommand)
method. An instance of the command class must be passed to the method. Or call the.addCommands(SlashCommand ... varargs)
method - To create a command, inherit the abstract class
SlashCommand
and implement theexecute()
method and constructor. Example