discord / trigger / schema v1
Discord: Self Role Event
Continue a workflow after the built-in Self Role panel grants or removes a role.
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 | |
Role eventevent | select Required Default: | Options: Role granted (granted), Role removed (removed) |
Self Role steprecipeNodeId | discord_role Optional | Internal filter used by detached Self Role blocks. Leave empty to listen to every Self Role panel in this server. |
Inputs and outputs
Inputs
No ports declared.
Outputs
on_self_role- On Self Role Event (output)self_role_event- Self Role Event (output)role_id- Role ID (output)role_name- Role Name (output)user_id- Member ID (output)message_id- Panel Message ID (output)self_role_node_id- Self Role Step ID (output)guild_id- Server ID (output)
Output data schema
[
{
"key": "self_role_event",
"type": "string",
"label": "Self Role Event"
},
{
"key": "role_id",
"type": "role",
"label": "Role ID",
"bindingRole": "selected_target"
},
{
"key": "role_name",
"type": "string",
"label": "Role Name"
},
{
"key": "user_id",
"type": "user",
"label": "Member ID",
"bindingRole": "actor"
},
{
"key": "message_id",
"type": "snowflake",
"label": "Panel Message ID"
},
{
"key": "self_role_node_id",
"type": "string",
"label": "Self Role 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
163c0af95e02db1d8356f0ef63741b99ef9a598b9649365f6e14479c36cc269e