Class SlashCommandSubCommandGroupCustomizer

Direct Known Subclasses:
SlashCommandCustomizerInterface

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

    • SlashCommandSubCommandGroupCustomizer

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

    • addSubCommandGroup

      public void addSubCommandGroup(String subCommandGroupName, String subCommandGroupDesc)
      Method to add a sub command group to the slash command
      Parameters:
      subCommandGroupName - the name of the sub command group
      subCommandGroupDesc - the description of the sub command group
    • getSubCommandGroupList

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