Index
All Classes and Interfaces|All Packages
A
- addJDAWithBotTasks(JDAInstanceTaskMapper) - Static method in class xyz.norbjert.jda4spring.internal.JDAInstanceManager
- AnnotationProcessor - Class in xyz.norbjert.jda4spring.annotations
-
scans a BotTask for all defined @SlashCommand and @OnChatMessage annotations
- AnnotationProcessor() - Constructor for class xyz.norbjert.jda4spring.annotations.AnnotationProcessor
B
- BotConfigDataMapper - Class in xyz.norbjert.jda4spring.internal
- BotConfigDataMapper() - Constructor for class xyz.norbjert.jda4spring.internal.BotConfigDataMapper
- BotTask - Annotation Interface in xyz.norbjert.jda4spring.annotations
C
- command() - Element in annotation interface xyz.norbjert.jda4spring.annotations.SlashCommand
- createSlashCommand(Method) - Static method in class xyz.norbjert.jda4spring.internal.SlashCommandDataFactory
-
creates a new
D
- description() - Element in annotation interface xyz.norbjert.jda4spring.annotations.SlashCommand
- description() - Element in annotation interface xyz.norbjert.jda4spring.annotations.SlashCommandArg
- DiscordBot - Class in xyz.norbjert.jda4spring.internal
-
represents a single discord bot account
- DiscordBot(String, List<Object>, Activity, GatewayIntent...) - Constructor for class xyz.norbjert.jda4spring.internal.DiscordBot
F
- findChatMsgAnnotations(List<Object>) - Static method in class xyz.norbjert.jda4spring.annotations.AnnotationProcessor
- findSlashCommands(List<Object>) - Static method in class xyz.norbjert.jda4spring.annotations.AnnotationProcessor
I
- ifMsgContains() - Element in annotation interface xyz.norbjert.jda4spring.annotations.OnChatMessage
J
- JDA4SpringMain - Class in xyz.norbjert.jda4spring.internal
-
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
- JDA4SpringMain(ApplicationContext, String) - Constructor for class xyz.norbjert.jda4spring.internal.JDA4SpringMain
- JDAInstanceManager - Class in xyz.norbjert.jda4spring.internal
-
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
- JDAInstanceManager() - Constructor for class xyz.norbjert.jda4spring.internal.JDAInstanceManager
- JDAInstanceTaskMapper - Class in xyz.norbjert.jda4spring.internal
- JDAInstanceTaskMapper() - Constructor for class xyz.norbjert.jda4spring.internal.JDAInstanceTaskMapper
N
- name() - Element in annotation interface xyz.norbjert.jda4spring.annotations.SlashCommandArg
O
- OnChatMessage - Annotation Interface in xyz.norbjert.jda4spring.annotations
- onMessageReceived(MessageReceivedEvent) - Method in class xyz.norbjert.jda4spring.internal.DiscordBot
-
gets called once the bot received a chat message and calls the respective method(s) to handle it
- onSlashCommandInteraction(SlashCommandInteractionEvent) - Method in class xyz.norbjert.jda4spring.internal.DiscordBot
-
gets called once the bot received a slash command and calls the respective method associated with that slash command
- options() - Element in annotation interface xyz.norbjert.jda4spring.annotations.SlashCommand
- optionType() - Element in annotation interface xyz.norbjert.jda4spring.annotations.SlashCommandArg
R
- requestJDAInstance(Class<?>) - Static method in class xyz.norbjert.jda4spring.internal.JDAInstanceManager
-
request the JDA instance for an eventListener
S
- SlashCommand - Annotation Interface in xyz.norbjert.jda4spring.annotations
-
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.
- SlashCommandArg - Annotation Interface in xyz.norbjert.jda4spring.annotations
- SlashCommandDataFactory - Class in xyz.norbjert.jda4spring.internal
-
static helper class, constructs a SlashCommandData object from an annotated method, converting the annotation into whatever JDA wants
- SlashCommandDataFactory() - Constructor for class xyz.norbjert.jda4spring.internal.SlashCommandDataFactory
V
X
- xyz.norbjert.jda4spring.annotations - package xyz.norbjert.jda4spring.annotations
- xyz.norbjert.jda4spring.internal - package xyz.norbjert.jda4spring.internal
All Classes and Interfaces|All Packages