Interface SelectMenu
-
- All Superinterfaces:
Component,LowLevelComponent
public interface SelectMenu extends LowLevelComponent
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static SelectMenucreate(String customId, String placeholder, int minimumValues, int maximumValues, List<SelectMenuOption> options)Creates a new select menu with the given values.static SelectMenucreate(String customId, String placeholder, int minimumValues, int maximumValues, List<SelectMenuOption> options, boolean isDisabled)Creates a new select menu with the given values.static SelectMenucreate(String customId, String placeholder, List<SelectMenuOption> options)Creates a new select menu with the given values.static SelectMenucreate(String customId, String placeholder, List<SelectMenuOption> options, boolean isDisabled)Creates a new select menu with the given values.static SelectMenucreate(String customId, List<SelectMenuOption> options)Creates a new select menu with the given values.static SelectMenucreate(String customId, List<SelectMenuOption> options, boolean isDisabled)Creates a new select menu with the given values.StringgetCustomId()Get the select menu's custom id.intgetMaximumValues()Gets the maximum amount of options which can be selected.intgetMinimumValues()Gets the minimum amount of options which must be selected.List<SelectMenuOption>getOptions()Get the select menu's options.Optional<String>getPlaceholder()Get the select menu's placeholder id.booleanisDisabled()If the select menu is disabled.
-
-
-
Method Detail
-
getPlaceholder
Optional<String> getPlaceholder()
Get the select menu's placeholder id.- Returns:
- The select menu's placeholder id.
-
getCustomId
String getCustomId()
Get the select menu's custom id.- Returns:
- The select menu's custom id.
-
getMinimumValues
int getMinimumValues()
Gets the minimum amount of options which must be selected.- Returns:
- The select menu's minimum values.
-
getMaximumValues
int getMaximumValues()
Gets the maximum amount of options which can be selected.- Returns:
- The select menu's maximum values.
-
getOptions
List<SelectMenuOption> getOptions()
Get the select menu's options.- Returns:
- The select menu's options.
-
isDisabled
boolean isDisabled()
If the select menu is disabled.- Returns:
- Is disabled.
-
create
static SelectMenu create(String customId, List<SelectMenuOption> options)
Creates a new select menu with the given values.- Parameters:
customId- The custom ID for the select menu.options- The select menu options.- Returns:
- The created select menu.
-
create
static SelectMenu create(String customId, List<SelectMenuOption> options, boolean isDisabled)
Creates a new select menu with the given values.- Parameters:
customId- The custom ID for the select menu.options- The select menu options.isDisabled- Set if the menu should be disabled.- Returns:
- The created select menu.
-
create
static SelectMenu create(String customId, String placeholder, List<SelectMenuOption> options)
Creates a new select menu with the given values.- Parameters:
customId- The custom ID for the select menu.placeholder- The placeholder for the select menu.options- The select menu options.- Returns:
- The created select menu.
-
create
static SelectMenu create(String customId, String placeholder, List<SelectMenuOption> options, boolean isDisabled)
Creates a new select menu with the given values.- Parameters:
customId- The custom ID for the select menu.placeholder- The placeholder for the select menu.options- The select menu options.isDisabled- Set if the menu should be disabled.- Returns:
- The created select menu.
-
create
static SelectMenu create(String customId, String placeholder, int minimumValues, int maximumValues, List<SelectMenuOption> options)
Creates a new select menu with the given values.- Parameters:
customId- The custom ID for the select menu.placeholder- The placeholder for the select menuminimumValues- The minimum amount of options which must be selected.maximumValues- The maximum amount of options which can be selected.options- The select menu options.- Returns:
- The created select menu.
-
create
static SelectMenu create(String customId, String placeholder, int minimumValues, int maximumValues, List<SelectMenuOption> options, boolean isDisabled)
Creates a new select menu with the given values.- Parameters:
customId- The custom ID for the select menu.placeholder- The placeholder for the select menuminimumValues- The minimum amount of options which must be selected.maximumValues- The maximum amount of options which can be selected.options- The select menu options.isDisabled- Set if the menu should be disabled.- Returns:
- The created select menu.
-
-