discord / trigger / schema v1
Discord: Invite Created / Deleted
Trigger when someone creates or revokes an invite link
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 | |
Channel FilterchannelId | discord_channel Optional | Only invites pointing at these channels. |
Inputs and outputs
Inputs
No ports declared.
Outputs
on_invite_create- On Created (output)on_invite_delete- On Deleted (output)code- Invite Code (output)invite_url- Invite URL (output)channel_id- Channel ID (output)guild_id- Server ID (output)inviter_id- Created By (ID) (output)inviter_username- Created By (output)inviter_avatar- Created By: Avatar URL (output)max_uses- Max Uses (output)max_age- Expires After (s) (output)temporary- Temporary Membership (output)expires_at- Expires At (output)timestamp- Timestamp (output)
Output data schema
[
{
"key": "code",
"type": "string",
"label": "Invite Code",
"bindingRole": "event_subject"
},
{
"key": "invite_url",
"type": "url",
"label": "Invite URL"
},
{
"key": "channel_id",
"type": "channel",
"label": "Channel ID",
"bindingRole": "current_context"
},
{
"key": "guild_id",
"type": "guild",
"label": "Server ID",
"bindingRole": "current_context"
},
{
"key": "inviter_id",
"type": "user",
"label": "Created By (ID)",
"description": "Empty on delete: Discord does not say who revoked it",
"bindingRole": "actor"
},
{
"key": "inviter_username",
"type": "string",
"label": "Created By",
"bindingRole": "actor"
},
{
"key": "inviter_avatar",
"type": "url",
"label": "Created By: Avatar URL"
},
{
"key": "max_uses",
"type": "number",
"label": "Max Uses"
},
{
"key": "max_age",
"type": "number",
"label": "Expires After (s)"
},
{
"key": "temporary",
"type": "boolean",
"label": "Temporary Membership"
},
{
"key": "expires_at",
"type": "timestamp",
"label": "Expires At"
},
{
"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
0bc344016f1e4288cfb955e22a6f3d0ee09ade4bcc53001de5b2ab4d3cbcad88