discord / trigger / schema v1
Discord: Giveaway Event
Continue a workflow when someone enters, withdraws, or when the built-in Giveaway draw ends.
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 | |
Giveaway eventevent | select Required Default: | Options: New entry (entered), Entry withdrawn (withdrawn), Giveaway ended (ended) |
Giveaway steprecipeNodeId | text Optional | Internal filter used by detached Giveaway blocks. Leave empty to listen to every Giveaway in this server. |
Inputs and outputs
Inputs
No ports declared.
Outputs
on_giveaway- On Giveaway Event (output)giveaway_event- Giveaway Event (output)user_id- Entrant ID (output)winner_ids- Winner IDs (output)winner_count- Winner Count (output)entry_count- Entry Count (output)prize- Prize (output)message_id- Giveaway Message ID (output)channel_id- Channel ID (output)giveaway_node_id- Giveaway Step ID (output)guild_id- Server ID (output)
Output data schema
[
{
"key": "giveaway_event",
"type": "string",
"label": "Giveaway Event"
},
{
"key": "user_id",
"type": "user",
"label": "Entrant ID",
"optional": true,
"bindingRole": "actor"
},
{
"key": "winner_ids",
"type": "array",
"label": "Winner IDs",
"optional": true,
"items": {
"key": "winner_id",
"type": "snowflake",
"bindingRole": "selected_target"
},
"bindingRole": "selected_target"
},
{
"key": "winner_count",
"type": "number",
"label": "Winner Count",
"optional": true
},
{
"key": "entry_count",
"type": "number",
"label": "Entry Count",
"optional": true
},
{
"key": "prize",
"type": "string",
"label": "Prize"
},
{
"key": "message_id",
"type": "snowflake",
"label": "Giveaway Message ID"
},
{
"key": "channel_id",
"type": "channel",
"label": "Channel ID",
"bindingRole": "current_context"
},
{
"key": "giveaway_node_id",
"type": "string",
"label": "Giveaway Step ID"
},
{
"key": "guild_id",
"type": "guild",
"label": "Server ID",
"bindingRole": "current_context"
}
]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
c38183799f102c35e8f122b032f5919af98acf07953ff895b32fcb9b02e332ac