discord / trigger / schema v1
Discord: Role Created / Updated / Deleted
Trigger when a role is created, changed, or deleted
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 FilterroleFilter | discord_role Optional | Only these roles. Empty = any role in the server. |
Inputs and outputs
Inputs
No ports declared.
Outputs
on_role_create- On Created (output)on_role_update- On Updated (output)on_role_delete- On Deleted (output)role_id- Role ID (output)role_name- Role Name (output)role_color- Colour (hex) (output)guild_id- Server ID (output)position- Position (output)hoist- Shown Separately (output)mentionable- Mentionable (output)managed- Managed by an app (output)old_role_name- Previous Name (output)timestamp- Timestamp (output)
Output data schema
[
{
"key": "role_id",
"type": "role",
"label": "Role ID",
"bindingRole": "event_subject"
},
{
"key": "role_name",
"type": "string",
"label": "Role Name",
"bindingRole": "event_subject"
},
{
"key": "role_color",
"type": "string",
"label": "Colour (hex)"
},
{
"key": "guild_id",
"type": "guild",
"label": "Server ID",
"bindingRole": "current_context"
},
{
"key": "position",
"type": "number",
"label": "Position"
},
{
"key": "hoist",
"type": "boolean",
"label": "Shown Separately",
"description": "Members with this role are listed under their own heading in the member list."
},
{
"key": "mentionable",
"type": "boolean",
"label": "Mentionable",
"description": "Anyone can @mention this role, not only members allowed to mention every role."
},
{
"key": "managed",
"type": "boolean",
"label": "Managed by an app"
},
{
"key": "old_role_name",
"type": "string",
"label": "Previous Name",
"description": "Updated only"
},
{
"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
14096317dc74ac81165ba087211753bdc3fb33bb6ca444ccc138c6dcfd8d40ee