Class SlashCommandCustomizer
java.lang.Object
org.prithvidiamond1.SlashCommandCustomizers.SlashCommandOptionCustomizer
org.prithvidiamond1.SlashCommandCustomizers.SlashCommandSubCommandCustomizer
org.prithvidiamond1.SlashCommandCustomizers.SlashCommandSubCommandGroupCustomizer
org.prithvidiamond1.SlashCommandCustomizers.SlashCommandCustomizerInterface
org.prithvidiamond1.SlashCommandCustomizers.SlashCommandCustomizer
This class contains methods to customize slash commands by implementing
SlashCommandCustomizerInterface
-
Constructor Summary
ConstructorDescriptionSlashCommandCustomizer
(org.javacord.api.interaction.SlashCommandBuilder command) Constructor for the customizer -
Method Summary
Modifier and TypeMethodDescriptionorg.javacord.api.interaction.SlashCommandBuilder
Method to save the customizations done to the slash commandMethods inherited from class org.prithvidiamond1.SlashCommandCustomizers.SlashCommandSubCommandGroupCustomizer
addSubCommandGroup, getSubCommandGroupList
Methods inherited from class org.prithvidiamond1.SlashCommandCustomizers.SlashCommandSubCommandCustomizer
addSubCommand, getSubCommandList
Methods inherited from class org.prithvidiamond1.SlashCommandCustomizers.SlashCommandOptionCustomizer
addCommandOption, addCommandOptionWithChoices, getOptionList
-
Constructor Details
-
SlashCommandCustomizer
public SlashCommandCustomizer(org.javacord.api.interaction.SlashCommandBuilder command) Constructor for the customizer- Parameters:
command
- the slash command to be customized
-
-
Method Details
-
setCustomizations
public org.javacord.api.interaction.SlashCommandBuilder setCustomizations()Method to save the customizations done to the slash command- Returns:
- the customized slash command builder
-