🗣️ create interactible dropdown with items (values) maximum selection count (maxValues) minimum selection count (minValues) placeholder (placeholder) enabled? (enabled) do (statements)
In Discord → Interactions → Dropdowns
Create an interactable dropdown list.
Requires the following blocks to be present in the project: discord login
Parameters
Parameter name | Parameter type | Required? | Description |
---|---|---|---|
values | Array | ✓ | The items in the dropdown. They must be dropdown items. |
maxValues | Number | ✓ | The maximum number of items a user can select from this dropdown. |
minValues | Number | ✓ | The minimum number of items a user can select from this dropdown. |
placeholder | String | ✓ | The ‘placeholder’ item. |
enabled | Boolean | ✓ | Whether this dropdown can be interacted with. |
statements | statements… | ✓ | The statements to execute when an item is selected from this dropdown. These will not execute if the bot is restarted; use create dropdown with ID instead. |
Output
interaction - The dropdown list.