Class SlashCommandSubCommandCustomizer
java.lang.Object
org.prithvidiamond1.SlashCommandCustomizers.SlashCommandOptionCustomizer
org.prithvidiamond1.SlashCommandCustomizers.SlashCommandSubCommandCustomizer
- Direct Known Subclasses:
SlashCommandSubCommandGroupCustomizer
Interface that allows for the customization of slash commands using sub commands
Inherits
Inherits
SlashCommandOptionCustomizer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addSubCommand
(String subCommandName, String subCommandDesc) Method to add a sub command to the slash commandList<org.javacord.api.interaction.SlashCommandOption>
Method that returns the list of sub commands added to the slash commandMethods inherited from class org.prithvidiamond1.SlashCommandCustomizers.SlashCommandOptionCustomizer
addCommandOption, addCommandOptionWithChoices, getOptionList
-
Constructor Details
-
SlashCommandSubCommandCustomizer
public SlashCommandSubCommandCustomizer()Constructor of this abstract class
-
-
Method Details
-
addSubCommand
Method to add a sub command to the slash command- Parameters:
subCommandName
- the name of the sub commandsubCommandDesc
- the description of the sub command
-
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
-