Skip to content

Entity Select Menu

Entity Select Menu is interactive component that lets your member pick the members, roles or channels available on the server.

This component has the following settings:

entity_menu_settings_en

  • Identifier — component identifier, enter something related to the component;

    INFO

    Identifier must be unique across all message components.

    Action executed by selection menu will get this identifier as component.id variable as well as list of selected options values as component.selectedOptions variable.

    For Modal Forms, the message template of Action being executed by this modal will get modal.values variable map, containing the identifier as key and the list of selected options as its value.

    Thus, this way you can determine what options were selected.

  • Menu Type — the type of options that will be used for this menu (members, roles or channels);
  • Minimum amount of values — the minimum amount of values user has to select;
  • Maximum amount of values — the maximum amount of values user is able to select;
  • Placeholder text if nothing is selected — a placeholder text if nothing is selected;
  • ActionAction that will be executed by menu option selection;
  • Disabled — checking this will make menu inactive, unable to be pressed.

Availability

This component is available for custom command's actions for all message template modes (text, embed, components).

It is also available for Modal Forms.

All rights sniffed.