Interface SlashCommandBuilderDelegate
-
- All Superinterfaces:
ApplicationCommandBuilderDelegate<SlashCommand>
public interface SlashCommandBuilderDelegate extends ApplicationCommandBuilderDelegate<SlashCommand>
This class is internally used by theSlashCommandBuilder. You usually don't want to interact with this object.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddOption(SlashCommandOption option)Adds a slash command option to the slash command.voidsetOptions(java.util.List<SlashCommandOption> options)Sets the slash commands for the slash command.-
Methods inherited from interface org.javacord.api.interaction.internal.ApplicationCommandBuilderDelegate
addDescriptionLocalization, addNameLocalization, createForServer, createGlobal, setDefaultDisabled, setDefaultEnabledForEveryone, setDefaultEnabledForPermissions, setDescription, setEnabledInDms, setName
-
-
-
-
Method Detail
-
addOption
void addOption(SlashCommandOption option)
Adds a slash command option to the slash command.- Parameters:
option- The option.
-
setOptions
void setOptions(java.util.List<SlashCommandOption> options)
Sets the slash commands for the slash command.- Parameters:
options- The options.
-
-