Interface SelectMenuInteraction

    • Method Detail

      • getSelectedRoles

        java.util.List<Role> getSelectedRoles()
        Gets the selected roles. Only available if the select menu is of type ComponentType.SELECT_MENU_ROLE.
        Returns:
        The selected roles.
      • getSelectedUsers

        java.util.List<User> getSelectedUsers()
        Gets the selected users. Only available if the select menu is of type ComponentType.SELECT_MENU_USER.
        Returns:
        The selected users.
      • getSelectedChannels

        java.util.List<ServerChannel> getSelectedChannels()
        Gets the selected channels. Only available if the select menu is of type ComponentType.SELECT_MENU_CHANNEL. If sent in a DM channel, this will always be empty.
        Returns:
        The selected channels.
      • getPlaceholder

        java.util.Optional<java.lang.String> getPlaceholder()
        Get the placeholder of the select menu.
        Returns:
        The placeholder.
      • getMinimumValues

        int getMinimumValues()
        Gets the minimum amount of options which must be selected.
        Returns:
        The min values.
      • getMaximumValues

        int getMaximumValues()
        Gets the maximum amount of options which can be selected.
        Returns:
        The max values.