discord / trigger / schema v1
Discord: Poll Vote
Trigger when someone votes on (or withdraws a vote from) a poll
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 | |
Channel FilterchannelId | discord_channel Optional | Only trigger for polls in any of these channels |
Poll Message FiltermessageId | text Optional | Only trigger for one specific poll. Wire {{message_id}} from the action that posted it. |
Inputs and outputs
Inputs
No ports declared.
Outputs
on_poll_vote_add- On Vote (output)on_poll_vote_remove- On Vote Removed (output)message_id- Poll Message ID (output)channel_id- Channel ID (output)guild_id- Server ID (output)user_id- Voter User ID (output)answer_id- Answer Number (output)timestamp- Timestamp (output)
Output data schema
[
{
"key": "message_id",
"type": "snowflake",
"label": "Poll Message ID",
"bindingRole": "event_subject"
},
{
"key": "channel_id",
"type": "channel",
"label": "Channel ID",
"bindingRole": "current_context"
},
{
"key": "guild_id",
"type": "guild",
"label": "Server ID",
"bindingRole": "current_context"
},
{
"key": "user_id",
"type": "user",
"label": "Voter User ID",
"bindingRole": "actor"
},
{
"key": "answer_id",
"type": "number",
"label": "Answer Number",
"description": "1 for the poll's first answer"
},
{
"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
89538fde90dd8237f3daaf1bc234d476737e2fed0872dc30dad780f9638ead92