Index
All Classes and Interfaces|All Packages
A
- AnnotationProcessor - Class in xyz.norbjert.jda4spring.internal
-
scans a BotTask for all defined @SlashCommand and @OnChatMessage annotations
B
- BotConfigDataMapper - Record Class in xyz.norbjert.jda4spring.internal
-
a simple record, containing one entry (aka one line) form the .config file
- BotConfigDataMapper(String, String, String) - Constructor for record class xyz.norbjert.jda4spring.internal.BotConfigDataMapper
-
Creates an instance of a
BotConfigDataMapperrecord class. - BotFunctionalityTesting - Class in xyz.norbjert.jda4spring.testing
-
Only actual testing class, does not do the usual unit tests that it should be doing bc im too lazy for that Instead I use this to test specific functionality when I am making changes You can ignore this
- BotFunctionalityTesting(String) - Constructor for class xyz.norbjert.jda4spring.testing.BotFunctionalityTesting
-
t
- BotTask - Annotation Interface in xyz.norbjert.jda4spring.annotations
- Button - Annotation Interface in xyz.norbjert.jda4spring.annotations
- ButtonHandler - Annotation Interface in xyz.norbjert.jda4spring.annotations
- buttonHandlerTesting(ButtonInteractionEvent) - Method in class xyz.norbjert.jda4spring.testing.BotFunctionalityTesting
C
- command() - Element in annotation interface xyz.norbjert.jda4spring.annotations.SlashCommand
- console(SlashCommandInteractionEvent) - Method in class xyz.norbjert.jda4spring.testing.BotFunctionalityTesting
- 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
-
a short description of the option and what its for
- DiscordBot - Class in xyz.norbjert.jda4spring.internal
-
represents a single discord bot account
- DiscordBot(String, List<Object>, Activity, List<GatewayIntent>) - Constructor for class xyz.norbjert.jda4spring.internal.DiscordBot
- DiscordBot(String, List<Object>, Activity, GatewayIntent...) - Constructor for class xyz.norbjert.jda4spring.internal.DiscordBot
E
- equals(Object) - Method in record class xyz.norbjert.jda4spring.internal.BotConfigDataMapper
-
Indicates whether some other object is "equal to" this one.
- ExampleBot - Class in xyz.norbjert.jda4spring.Examples
- ExampleBot() - Constructor for class xyz.norbjert.jda4spring.Examples.ExampleBot
G
- getJDAInstances(Class<?>) - Method in class xyz.norbjert.jda4spring.internal.JDA4SpringMain
-
request the JDA instance for an eventListener
H
- hashCode() - Method in record class xyz.norbjert.jda4spring.internal.BotConfigDataMapper
-
Returns a hash code value for this object.
- hello(MessageReceivedEvent) - Method in class xyz.norbjert.jda4spring.Examples.ExampleBot
I
- ifMsgContains() - Element in annotation interface xyz.norbjert.jda4spring.annotations.OnChatMessage
J
- JDA4springApplication - Class in xyz.norbjert.jda4spring
- JDA4springApplication() - Constructor for class xyz.norbjert.jda4spring.JDA4springApplication
- 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)
- JDA4SpringMain(ApplicationContext, String) - Constructor for class xyz.norbjert.jda4spring.internal.JDA4SpringMain
M
- main(String[]) - Static method in class xyz.norbjert.jda4spring.JDA4springApplication
N
- name() - Element in annotation interface xyz.norbjert.jda4spring.annotations.SlashCommandArg
-
a name to classify which option is which
- name() - Method in record class xyz.norbjert.jda4spring.internal.BotConfigDataMapper
-
Returns the value of the
namerecord component.
O
- onAllChatMessages(MessageReceivedEvent) - Method in class xyz.norbjert.jda4spring.Examples.ExampleBot
- onButtonInteraction(ButtonInteractionEvent) - Method in class xyz.norbjert.jda4spring.internal.DiscordBot
-
gets called once the bot received a Button Interaction and calls the respective method(s) to handle it
- onButtonInteraction(ButtonInteractionEvent) - Method in class xyz.norbjert.jda4spring.testing.BotFunctionalityTesting
- 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
- onMsg(MessageReceivedEvent) - Method in class xyz.norbjert.jda4spring.testing.BotFunctionalityTesting
- 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
- onSlashCommandInteraction(SlashCommandInteractionEvent) - Method in class xyz.norbjert.jda4spring.testing.BotFunctionalityTesting
- options() - Element in annotation interface xyz.norbjert.jda4spring.annotations.SlashCommand
- optionType() - Element in annotation interface xyz.norbjert.jda4spring.annotations.SlashCommandArg
-
what data type the option will be (string, int,...) default is string
P
- ping(SlashCommandInteractionEvent) - Method in class xyz.norbjert.jda4spring.Examples.ExampleBot
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
-
a slash command argument, that can be used as a sub-element of the @SlashCommand annotation
- 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
T
- toString() - Method in record class xyz.norbjert.jda4spring.internal.BotConfigDataMapper
-
Returns a string representation of this record class.
- type() - Method in record class xyz.norbjert.jda4spring.internal.BotConfigDataMapper
-
Returns the value of the
typerecord component.
V
- value() - Element in annotation interface xyz.norbjert.jda4spring.annotations.BotTask
- value() - Element in annotation interface xyz.norbjert.jda4spring.annotations.Button
- value() - Method in record class xyz.norbjert.jda4spring.internal.BotConfigDataMapper
-
Returns the value of the
valuerecord component.
X
- xyz.norbjert.jda4spring - package xyz.norbjert.jda4spring
- xyz.norbjert.jda4spring.annotations - package xyz.norbjert.jda4spring.annotations
- xyz.norbjert.jda4spring.Examples - package xyz.norbjert.jda4spring.Examples
- xyz.norbjert.jda4spring.internal - package xyz.norbjert.jda4spring.internal
- xyz.norbjert.jda4spring.testing - package xyz.norbjert.jda4spring.testing
All Classes and Interfaces|All Packages