Class SelectMenuBuilder

    • Constructor Detail

      • SelectMenuBuilder

        public SelectMenuBuilder​()
    • Method Detail

      • setPlaceholder

        public SelectMenuBuilder setPlaceholder​(String placeholder)
        Set the placeholder for the select menu.
        Parameters:
        placeholder - The placeholder.
        Returns:
        The builder.
      • setMinimumValues

        public SelectMenuBuilder setMinimumValues​(int minimumValues)
        Set the minimum amount of options which must be selected.
        Parameters:
        minimumValues - The minimum values.
        Returns:
        The builder.
      • setMaximumValues

        public SelectMenuBuilder setMaximumValues​(int maximumValues)
        Set the maximum amount of options which can be selected.
        Parameters:
        maximumValues - The maximum values.
        Returns:
        The builder.
      • setCustomId

        public SelectMenuBuilder setCustomId​(String customId)
        Set the custom ID for the select menu.
        Parameters:
        customId - The custom ID.
        Returns:
        The builder.
      • addOption

        public SelectMenuBuilder addOption​(SelectMenuOption selectMenuOption)
        Add an option to the select menu.
        Parameters:
        selectMenuOption - The option.
        Returns:
        The builder.
      • removeOption

        public SelectMenuBuilder removeOption​(SelectMenuOption selectMenuOption)
        Remove an option from the select menu.
        Parameters:
        selectMenuOption - The option.
        Returns:
        The builder.
      • addOptions

        public SelectMenuBuilder addOptions​(List<SelectMenuOption> selectMenuOptions)
        Adds all given options to the select menu.
        Parameters:
        selectMenuOptions - The options.
        Returns:
        The builder.
      • removeAllOptions

        public SelectMenuBuilder removeAllOptions​()
        Removes all options from the select menu.
        Returns:
        The builder.
      • setDisabled

        public SelectMenuBuilder setDisabled​(boolean isDisabled)
        Set if the select menu should be disabled.
        Parameters:
        isDisabled - Is disabled.
        Returns:
        The builder.
      • copy

        public SelectMenuBuilder copy​(SelectMenu selectMenu)
        Create a copy of an existing select menu.
        Parameters:
        selectMenu - The select menu to copy.
        Returns:
        The select menu builder.
      • build

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