Interface SelectMenuOption
-
public interface SelectMenuOption
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static SelectMenuOptioncreate(java.lang.String label, java.lang.String value)Creates a new select menu option with the given values.static SelectMenuOptioncreate(java.lang.String label, java.lang.String value, boolean isDefault)Creates a new select menu option with the given values.static SelectMenuOptioncreate(java.lang.String label, java.lang.String value, java.lang.String description)Creates a new select menu option with the given values.static SelectMenuOptioncreate(java.lang.String label, java.lang.String value, java.lang.String description, boolean isDefault)Creates a new select menu option with the given values.static SelectMenuOptioncreate(java.lang.String label, java.lang.String value, java.lang.String description, Emoji emoji)Creates a new select menu option with the given values.static SelectMenuOptioncreate(java.lang.String label, java.lang.String value, java.lang.String description, Emoji emoji, boolean isDefault)Creates a new select menu option with the given values.java.util.Optional<java.lang.String>getDescription()Get the description of the select menu option.java.util.Optional<Emoji>getEmoji()Get the emoji of the select menu option.java.lang.StringgetLabel()Get the label of the select menu option.java.lang.StringgetValue()Get the value of the select menu option.booleanisDefault()If the option is the default for the menu.
-
-
-
Method Detail
-
getLabel
java.lang.String getLabel()
Get the label of the select menu option.- Returns:
- The label of the option.
-
getValue
java.lang.String getValue()
Get the value of the select menu option.- Returns:
- The value of the option.
-
getDescription
java.util.Optional<java.lang.String> getDescription()
Get the description of the select menu option.- Returns:
- The description of the option.
-
getEmoji
java.util.Optional<Emoji> getEmoji()
Get the emoji of the select menu option.- Returns:
- The emoji of the option.
-
isDefault
boolean isDefault()
If the option is the default for the menu.- Returns:
- Is default.
-
create
static SelectMenuOption create(java.lang.String label, java.lang.String value)
Creates a new select menu option with the given values.- Parameters:
label- The label for the option.value- The value for the option.- Returns:
- The created select menu option.
-
create
static SelectMenuOption create(java.lang.String label, java.lang.String value, boolean isDefault)
Creates a new select menu option with the given values.- Parameters:
label- The label for the option.value- The value for the option.isDefault- If the option is the default option.- Returns:
- The created select menu option.
-
create
static SelectMenuOption create(java.lang.String label, java.lang.String value, java.lang.String description)
Creates a new select menu option with the given values.- Parameters:
label- The label for the option.value- The value for the option.description- The description for the option.- Returns:
- The created select menu option.
-
create
static SelectMenuOption create(java.lang.String label, java.lang.String value, java.lang.String description, boolean isDefault)
Creates a new select menu option with the given values.- Parameters:
label- The label for the option.value- The value for the option.description- The description for the option.isDefault- If the option is the default option.- Returns:
- The created select menu option.
-
create
static SelectMenuOption create(java.lang.String label, java.lang.String value, java.lang.String description, Emoji emoji)
Creates a new select menu option with the given values.- Parameters:
label- The label for the option.value- The value for the option.description- The description for the option.emoji- The emoji for the option.- Returns:
- The created select menu option.
-
create
static SelectMenuOption create(java.lang.String label, java.lang.String value, java.lang.String description, Emoji emoji, boolean isDefault)
Creates a new select menu option with the given values.- Parameters:
label- The label for the option.value- The value for the option.description- The description for the option.emoji- The emoji for the option.isDefault- If the option is the default option.- Returns:
- The created select menu option.
-
-