Interface SelectMenuBuilderDelegate
-
- All Superinterfaces:
ComponentBuilderDelegate
public interface SelectMenuBuilderDelegate extends ComponentBuilderDelegate
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddOption(SelectMenuOption selectMenuOption)Add an option to the select menu.SelectMenubuild()Creates aSelectMenuinstance with the given values.voidcopy(SelectMenu selectMenu)Copy a select menu's values into the builder.java.lang.StringgetCustomId()Get the custom ID of the select menu.ComponentTypegetType()Get the select menu's type.voidremoveAllOptions()Removes all options from the select menu.voidremoveOption(SelectMenuOption selectMenuOption)Remove an option from the select menu.voidsetCustomId(java.lang.String customId)Set the select menu's component identifier.voidsetDisabled(boolean disabled)Set if the select menu should be disabled.voidsetMaximumValues(int maximumValues)Set the max amount of options to choose.voidsetMinimumValues(int minimumValues)Set the min amount of options to choose.voidsetPlaceholder(java.lang.String placeholder)Set the select menu's placeholder.
-
-
-
Method Detail
-
getType
ComponentType getType()
Get the select menu's type.- Returns:
- Always
ComponentType.SELECT_MENU
-
copy
void copy(SelectMenu selectMenu)
Copy a select menu's values into the builder.- Parameters:
selectMenu- The select menu to copy.
-
addOption
void addOption(SelectMenuOption selectMenuOption)
Add an option to the select menu.- Parameters:
selectMenuOption- The option to add.
-
removeOption
void removeOption(SelectMenuOption selectMenuOption)
Remove an option from the select menu.- Parameters:
selectMenuOption- The option to remove.
-
setPlaceholder
void setPlaceholder(java.lang.String placeholder)
Set the select menu's placeholder.- Parameters:
placeholder- The select menu's placeholder.
-
setCustomId
void setCustomId(java.lang.String customId)
Set the select menu's component identifier.- Parameters:
customId- The select menu's identifier.
-
setMinimumValues
void setMinimumValues(int minimumValues)
Set the min amount of options to choose.- Parameters:
minimumValues- The select menu's minimum values
-
setMaximumValues
void setMaximumValues(int maximumValues)
Set the max amount of options to choose.- Parameters:
maximumValues- The select menu's maximum values
-
setDisabled
void setDisabled(boolean disabled)
Set if the select menu should be disabled.- Parameters:
disabled- Is disabled.
-
build
SelectMenu build()
Creates aSelectMenuinstance with the given values.- Returns:
- The created select menu instance.
-
removeAllOptions
void removeAllOptions()
Removes all options from the select menu.
-
getCustomId
java.lang.String getCustomId()
Get the custom ID of the select menu.- Returns:
- The custom ID.
-
-