Interface SelectMenu

All Superinterfaces:
ActionComponent, ActionRowChildComponent, Component, IDisableable
All Known Subinterfaces:
EntitySelectMenu, StringSelectMenu
All Known Implementing Classes:
EntitySelectMenuImpl, SelectMenuImpl, StringSelectMenuImpl

public interface SelectMenu extends ActionComponent, ActionRowChildComponent
Represents a select menu in a message.
This is an interactive component and usually located within an ActionRow. One select menu fills up an entire action row by itself. You cannot have an action row with other components if a select menu is present in the same row.

The selections a user makes are only visible within their current client session. Other users cannot see the choices selected, and they will disappear when the client restarts or the message is reloaded.

This is a generic interface for all types of select menus.
You can use EntitySelectMenu.create(String, Collection) to create a select menu of Discord entities such as users.
Alternatively, you can use StringSelectMenu.create(String) to create a select menu of up to 25 pre-defined strings to pick from.

See Also: