Interface SelectMenuOption



  • public interface SelectMenuOption
    • Method Detail

      • getLabel

        String getLabel​()
        Get the label of the select menu option.
        Returns:
        The label of the option.
      • getValue

        String getValue​()
        Get the value of the select menu option.
        Returns:
        The value of the option.
      • getDescription

        Optional<String> getDescription​()
        Get the description of the select menu option.
        Returns:
        The description of the option.
      • getEmoji

        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​(String label,
                                       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​(String label,
                                       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​(String label,
                                       String value,
                                       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​(String label,
                                       String value,
                                       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​(String label,
                                       String value,
                                       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​(String label,
                                       String value,
                                       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.