discord / trigger / schema v1
Discord: Ban / Unban
Trigger when a user is banned or unbanned from the server
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 |
Inputs and outputs
Inputs
No ports declared.
Outputs
on_ban- On Ban (output)on_unban- On Unban (output)user_id- User ID (output)username- Username (output)user_avatar- User Avatar URL (output)guild_id- Server ID (output)guild_name- Server Name (output)reason- Reason (output)timestamp- Timestamp (output)
Output data schema
[
{
"key": "user_id",
"type": "user",
"label": "User ID",
"bindingRole": "event_subject"
},
{
"key": "username",
"type": "string",
"label": "Username",
"bindingRole": "event_subject"
},
{
"key": "user_avatar",
"type": "url",
"label": "User Avatar URL"
},
{
"key": "guild_id",
"type": "guild",
"label": "Server ID",
"bindingRole": "current_context"
},
{
"key": "guild_name",
"type": "string",
"label": "Server Name",
"bindingRole": "current_context"
},
{
"key": "reason",
"type": "string",
"label": "Reason"
},
{
"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
5369baf2f2b56f68c5e6e22a2b287c8afe8973cda1eb5397c5d3fe6d6528572e