twitch / trigger / schema v1
Prediction Resolved
Fires when a prediction is resolved or cancelled
Prerequisites
- Add the twitch plugin inside this workflow.
- Connect and authorize a twitch account before running this node.
Parameters
| Parameter | Type | Description |
|---|---|---|
Channelchannel | twitch_self Required | Triggers only on your connected Twitch channel. |
Inputs and outputs
Inputs
No ports declared.
Outputs
on_event- On Prediction Resolved (output)prediction_id- Prediction ID (output)title- Question (output)status- Status (resolved / canceled) (output)winning_outcome_id- Winning Outcome ID (output)outcomes- Outcomes With Totals (output)started_at- Started At (output)ended_at- Ended At (output)
Output data schema
[
{
"key": "prediction_id",
"type": "string",
"description": "Prediction ID",
"label": "Prediction ID",
"bindingRole": "event_subject"
},
{
"key": "title",
"type": "string",
"description": "Question",
"label": "Question"
},
{
"key": "status",
"type": "string",
"description": "Status (resolved / canceled)",
"label": "Status (resolved / canceled)"
},
{
"key": "winning_outcome_id",
"type": "string",
"description": "Winning Outcome ID",
"label": "Winning Outcome ID",
"optional": true,
"bindingRole": "selected_target"
},
{
"key": "outcomes",
"type": "array",
"description": "Outcomes With Totals",
"label": "Outcomes With Totals",
"items": {
"key": "item",
"type": "any",
"optional": true
}
},
{
"key": "started_at",
"type": "string",
"description": "Started At",
"label": "Started At"
},
{
"key": "ended_at",
"type": "string",
"description": "Ended At",
"label": "Ended At"
}
]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
0e6812886ae9c385e3672dce22fc0dc9a810e89547184c371de426c5e234375e