discord / trigger / schema v1
Discord: Select Menu
Trigger when a user picks option(s) from a select menu component
Prerequisites
- Add the discord plugin inside this workflow.
- Connect and authorize a discord account before running this node.
Parameters
| Parameter | Type | Description |
|---|---|---|
ServerguildId | discord_guild Required | |
Which menumenuId | tags Optional | Pick the menu this answers. One your message steps create. Leave empty to answer every menu. |
Role FilterroleFilter | discord_role Optional | Only trigger if the user has any of these roles |
Inputs and outputs
Inputs
No ports declared.
Outputs
on_select_menu- On Select (output)interaction_id- Interaction ID (output)custom_id- Menu ID (output)values- Selected Values (output)value- First Value (output)user_id- User ID (output)username- Username (output)user_avatar- User Avatar URL (output)channel_id- Channel ID (output)guild_id- Server ID (output)message_id- Message ID (output)member_roles- Member role IDs (output)interaction_token- Reply pass (output)timestamp- Timestamp (output)
Output data schema
[
{
"key": "interaction_id",
"type": "snowflake",
"label": "Interaction ID",
"bindingRole": "current_context"
},
{
"key": "custom_id",
"type": "string",
"label": "Menu ID"
},
{
"key": "values",
"type": "array",
"label": "Selected Values",
"items": {
"key": "value",
"type": "string",
"bindingRole": "selected_target"
},
"bindingRole": "selected_target"
},
{
"key": "value",
"type": "string",
"label": "First Value",
"bindingRole": "selected_target"
},
{
"key": "user_id",
"type": "user",
"label": "User ID",
"bindingRole": "actor"
},
{
"key": "username",
"type": "string",
"label": "Username",
"bindingRole": "actor"
},
{
"key": "user_avatar",
"type": "url",
"label": "User Avatar URL"
},
{
"key": "channel_id",
"type": "channel",
"label": "Channel ID",
"bindingRole": "current_context"
},
{
"key": "guild_id",
"type": "guild",
"label": "Server ID",
"bindingRole": "current_context"
},
{
"key": "message_id",
"type": "snowflake",
"label": "Message ID"
},
{
"key": "member_roles",
"type": "array",
"label": "Member role IDs",
"items": {
"key": "role_id",
"type": "snowflake",
"bindingRole": "actor"
},
"bindingRole": "actor"
},
{
"key": "interaction_token",
"type": "string",
"label": "Reply pass",
"description": "Used automatically when you reply to this. You normally never need to insert it yourself.",
"bindingRole": "current_context"
},
{
"key": "timestamp",
"type": "timestamp",
"label": "Timestamp"
}
]Examples and troubleshooting have not yet been reviewed for this contract.
Version and compatibility
This reference follows the current authoring contract. Existing workflows retain their saved node revisions.
Contract identifier
91d4e68594378b98688a8a615c3edf7fefd405fece540ebdff260649593f94d6