Dropdown Select
Triggers when a dropdown below a message is selected.
This trigger is based on Discord event InteractionCreate.
Inputs
Dropdown ID
The dropdown ID that you want to monitor for selections.
Examples:
- This trigger with the dropdown ID of
cool-dropdown
would only trigger for dropdowns with the ID ofcool-dropdown
- If the Dropdown ID was
dropdown-*
it would trigger fordropdown-yellow
,dropdown-blue
, and anything else that started withdropdown-
Outputs
Interaction ID
The interaction ID of the dropdown interaction.
Example: 123456789012345678
Interaction Token
The token of the dropdown interaction.
Example: abCdeF123gHiJkLmNoPqRsTuVwXyZ0123456789
Server ID
The server ID where the dropdown was selected.
Example: 123456789012345678
Channel ID
The server ID where the dropdown was selected.
Example: 123456789012345678
Executing User ID
The ID of the user that selected the dropdown option.
Example: 123456789012345678
Dropdown ID
The complete dropdown ID that was selected.
Example: dropdown-yellow
Dropdown Values
A comma-separated list of values that were selected in the dropdown. For text dropdowns this is whatever was input as the value
in the dropdown option. For user/role/channel dropdowns this is the user/role/channel ID.
Examples: option-one
or 123456789012345678,123456789012345678
Message ID
The message ID that the dropdown is attached to.
Example: 123456789012345678
Context Type
The context type of the command.
Example: Server
, DM
App Permissions
What permissions the bot application has in the context type.
Example: 2251799813685247
\
More Information
While different from buttons and modals, dropdowns are very similar to a button but with an extra data field being returned to the receiving flow. Dropdowns not only have an ID that is shared between all dropdown items in a single select menu, they also allow for up to 5 dropdowns to be added per message. More information and examples for the Dropdown Select trigger can be found on the Button Click documentation page