Class SlashCommandSubCommandCustomizer

java.lang.Object
org.prithvidiamond1.SlashCommandCustomizers.SlashCommandOptionCustomizer
org.prithvidiamond1.SlashCommandCustomizers.SlashCommandSubCommandCustomizer
Direct Known Subclasses:
SlashCommandSubCommandGroupCustomizer

public abstract class SlashCommandSubCommandCustomizer extends SlashCommandOptionCustomizer
Interface that allows for the customization of slash commands using sub commands
Inherits SlashCommandOptionCustomizer
  • Constructor Details

    • SlashCommandSubCommandCustomizer

      public SlashCommandSubCommandCustomizer()
      Constructor of this abstract class
  • Method Details

    • addSubCommand

      public void addSubCommand(String subCommandName, String subCommandDesc)
      Method to add a sub command to the slash command
      Parameters:
      subCommandName - the name of the sub command
      subCommandDesc - the description of the sub command
    • getSubCommandList

      public List<org.javacord.api.interaction.SlashCommandOption> getSubCommandList()
      Method that returns the list of sub commands added to the slash command
      Returns:
      a list of the sub commands added to the slash command