Class SelectMenuOptionBuilder



  • public class SelectMenuOptionBuilder
    extends Object
    • Constructor Detail

      • SelectMenuOptionBuilder

        public SelectMenuOptionBuilder​()
    • 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.