All Classes and Interfaces
Class
Description
scans a BotTask for all defined @SlashCommand and @OnChatMessage annotations
represents a single discord bot account
handles the initialisation process of the individual DiscordBots and configures them with their tasks, activities and API tokens (and soon gateway intents)
ToDo: maybe get rid of JDAInstanceManager and JDAInstanceTaskMapper
simple help class, to allow BotTasks to request their jda instance
Todo: get rid of this crap, put the functionality into DiscordBot or remove it entirely
use this Annotation to define a method as slashCommand, it will automatically get processed and executed whenever called
Example:
SlashCommand(command = "test")
public void testName(SlashCommandInteractionEvent event){
[your code here]
}
MultiArgsExample:
SlashCommand(command = "multiargtest", description = "multiArgTestDescription", options = {
SlashCommandArg(arg = "arg1", description = "arg1Description"),
SlashCommandArg(arg = "arg2", description = "arg2Description")
})
public void testMultiArgs(SlashCommandInteractionEvent event, List String listOfArgs){ }
Important Notes to keep in mind:
1.
static helper class, constructs a SlashCommandData object from an annotated method, converting the annotation into whatever JDA wants