Class SlashCommandSubCommandGroupCustomizer
java.lang.Object
org.prithvidiamond1.SlashCommandCustomizers.SlashCommandOptionCustomizer
org.prithvidiamond1.SlashCommandCustomizers.SlashCommandSubCommandCustomizer
org.prithvidiamond1.SlashCommandCustomizers.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
Inherits
SlashCommandSubCommandCustomizer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addSubCommandGroup
(String subCommandGroupName, String subCommandGroupDesc) Method to add a sub command group to the slash commandList<org.javacord.api.interaction.SlashCommandOption>
Method that returns the list of sub command groups added to the slash commandMethods inherited from class org.prithvidiamond1.SlashCommandCustomizers.SlashCommandSubCommandCustomizer
addSubCommand, getSubCommandList
Methods inherited from class org.prithvidiamond1.SlashCommandCustomizers.SlashCommandOptionCustomizer
addCommandOption, addCommandOptionWithChoices, getOptionList
-
Constructor Details
-
SlashCommandSubCommandGroupCustomizer
public SlashCommandSubCommandGroupCustomizer()Constructor of this abstract class
-
-
Method Details
-
addSubCommandGroup
Method to add a sub command group to the slash command- Parameters:
subCommandGroupName
- the name of the sub command groupsubCommandGroupDesc
- the description of the sub command group
-
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
-