Package xyz.norbjert.jda4spring.testing
Class BotFunctionalityTesting
java.lang.Object
xyz.norbjert.jda4spring.testing.BotFunctionalityTesting
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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbuttonHandlerTesting(net.dv8tion.jda.api.events.interaction.component.ButtonInteractionEvent event) voidconsole(net.dv8tion.jda.api.events.interaction.command.SlashCommandInteractionEvent event) voidonButtonInteraction(net.dv8tion.jda.api.events.interaction.component.ButtonInteractionEvent event) voidonMsg(net.dv8tion.jda.api.events.message.MessageReceivedEvent event) voidonSlashCommandInteraction(net.dv8tion.jda.api.events.interaction.command.SlashCommandInteractionEvent event)
-
Constructor Details
-
BotFunctionalityTesting
t- Parameters:
loggingChannelID- t
-
-
Method Details
-
onSlashCommandInteraction
@SlashCommand(command="test") public void onSlashCommandInteraction(net.dv8tion.jda.api.events.interaction.command.SlashCommandInteractionEvent event) - Parameters:
event- t
-
onButtonInteraction
public void onButtonInteraction(net.dv8tion.jda.api.events.interaction.component.ButtonInteractionEvent event) - Parameters:
event- t
-
buttonHandlerTesting
public void buttonHandlerTesting(net.dv8tion.jda.api.events.interaction.component.ButtonInteractionEvent event) - Parameters:
event- t
-
onMsg
- Parameters:
event- t
-
console
@SlashCommand public void console(net.dv8tion.jda.api.events.interaction.command.SlashCommandInteractionEvent event)
-