Package xyz.norbjert.jda4spring.annotations


package xyz.norbjert.jda4spring.annotations
  • Annotation Interfaces
    Class
    Description
     
     
     
     
    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.
    a slash command argument, that can be used as a sub-element of the @SlashCommand annotation