Interface SelectMenuBuilderDelegate

    • Method Detail

      • copy

        void copy​(SelectMenu selectMenu)
        Copy a select menu's values into the builder.
        Parameters:
        selectMenu - The select menu to copy.
      • addOption

        void addOption​(SelectMenuOption selectMenuOption)
        Add an option to the select menu.
        Parameters:
        selectMenuOption - The option to add.
      • removeOption

        void removeOption​(SelectMenuOption selectMenuOption)
        Remove an option from the select menu.
        Parameters:
        selectMenuOption - The option to remove.
      • setPlaceholder

        void setPlaceholder​(String placeholder)
        Set the select menu's placeholder.
        Parameters:
        placeholder - The select menu's placeholder.
      • setCustomId

        void setCustomId​(String customId)
        Set the select menu's component identifier.
        Parameters:
        customId - The select menu's identifier.
      • setMinimumValues

        void setMinimumValues​(int minimumValues)
        Set the min amount of options to choose.
        Parameters:
        minimumValues - The select menu's minimum values
      • setMaximumValues

        void setMaximumValues​(int maximumValues)
        Set the max amount of options to choose.
        Parameters:
        maximumValues - The select menu's maximum values
      • setDisabled

        void setDisabled​(boolean disabled)
        Set if the select menu should be disabled.
        Parameters:
        disabled - Is disabled.
      • build

        SelectMenu build​()
        Creates a SelectMenu instance with the given values.
        Returns:
        The created select menu instance.
      • removeAllOptions

        void removeAllOptions​()
        Removes all options from the select menu.
      • getCustomId

        String getCustomId​()
        Get the custom ID of the select menu.
        Returns:
        The custom ID.