Interface SlashCommandOptionBuilderDelegate
-
public interface SlashCommandOptionBuilderDelegateThis class is internally used by theSlashCommandOptionBuilder. You usually don't want to interact with this object.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddChoice(SlashCommandOptionChoice choice)Adds an choice for the slash command option.voidaddOption(SlashCommandOption option)Adds an slash command option to the slash command option.SlashCommandOptionbuild()Build the slash command option.voidsetChoices(List<SlashCommandOptionChoice> choices)Sets the choices of the slash command option.voidsetDescription(String description)Sets the description of the slash command option.voidsetName(String name)Sets the name of the slash command option.voidsetOptions(List<SlashCommandOption> options)Sets the slash commands for the slash command option.voidsetRequired(boolean required)Sets if the slash command option is required.voidsetType(SlashCommandOptionType type)Sets the type of the slash command option.
-
-
-
Method Detail
-
setType
void setType(SlashCommandOptionType type)
Sets the type of the slash command option.- Parameters:
type- The type.
-
setName
void setName(String name)
Sets the name of the slash command option.- Parameters:
name- The name.
-
setDescription
void setDescription(String description)
Sets the description of the slash command option.- Parameters:
description- The description.
-
setRequired
void setRequired(boolean required)
Sets if the slash command option is required.- Parameters:
required- Whether or not the option is required.
-
addChoice
void addChoice(SlashCommandOptionChoice choice)
Adds an choice for the slash command option.- Parameters:
choice- The choice.
-
setChoices
void setChoices(List<SlashCommandOptionChoice> choices)
Sets the choices of the slash command option.- Parameters:
choices- The choices.
-
addOption
void addOption(SlashCommandOption option)
Adds an slash command option to the slash command option.- Parameters:
option- The option.
-
setOptions
void setOptions(List<SlashCommandOption> options)
Sets the slash commands for the slash command option.- Parameters:
options- The options.
-
build
SlashCommandOption build()
Build the slash command option.- Returns:
- The built option.
-
-