Class SelectMenuOptionBuilder
- java.lang.Object
-
- org.javacord.api.entity.message.component.SelectMenuOptionBuilder
-
public class SelectMenuOptionBuilder extends java.lang.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(java.lang.String description)Set the description for the select menu option.SelectMenuOptionBuildersetEmoji(Emoji emoji)Set the emoji for the select menu option.SelectMenuOptionBuildersetLabel(java.lang.String label)Set the label for the select menu option.SelectMenuOptionBuildersetValue(java.lang.String value)Set the value for the select menu option.
-
-
-
Method Detail
-
setLabel
public SelectMenuOptionBuilder setLabel(java.lang.String label)
Set the label for the select menu option.- Parameters:
label- The label.- Returns:
- The builder.
-
setValue
public SelectMenuOptionBuilder setValue(java.lang.String value)
Set the value for the select menu option.- Parameters:
value- The value.- Returns:
- The builder.
-
setDescription
public SelectMenuOptionBuilder setDescription(java.lang.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.
-
-