Class SelectMenuOptionBuilder
- java.lang.Object
-
- org.javacord.api.entity.message.component.SelectMenuOptionBuilder
-
public class SelectMenuOptionBuilder extends Object
-
-
Constructor Summary
Constructors Constructor Description SelectMenuOptionBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SelectMenuOptionbuild()Creates aSelectMenuOptioninstance with the given values.SelectMenuOptionBuildersetDefault(boolean isDefault)Set the option to default for the menu.SelectMenuOptionBuildersetDescription(String description)Set the description for the select menu option.SelectMenuOptionBuildersetEmoji(Emoji emoji)Set the emoji for the select menu option.SelectMenuOptionBuildersetLabel(String label)Set the label for the select menu option.SelectMenuOptionBuildersetValue(String value)Set the value for the select menu option.
-
-
-
Method Detail
-
setLabel
public SelectMenuOptionBuilder setLabel(String label)
Set the label for the select menu option.- Parameters:
label- The label.- Returns:
- The builder.
-
setValue
public SelectMenuOptionBuilder setValue(String value)
Set the value for the select menu option.- Parameters:
value- The value.- Returns:
- The builder.
-
setDescription
public SelectMenuOptionBuilder setDescription(String description)
Set the description for the select menu option.- Parameters:
description- The description.- Returns:
- The builder.
-
setEmoji
public SelectMenuOptionBuilder setEmoji(Emoji emoji)
Set the emoji for the select menu option.- Parameters:
emoji- The emoji.- Returns:
- The builder.
-
setDefault
public SelectMenuOptionBuilder setDefault(boolean isDefault)
Set the option to default for the menu.- Parameters:
isDefault- If it is default.- Returns:
- The builder.
-
build
public SelectMenuOption build()
Creates aSelectMenuOptioninstance with the given values.- Returns:
- The created select menu option instance.
-
-