API ReferenceDiscord
Role Added
Discord trigger: discord:discord:role:role-added
Role Added
| Trigger ID | discord:discord:role:role-added |
| Plugin | Discord |
| Category | Role |
Variables
Copy variables into handler fields using {variableName} syntax.
{guildId}{guild}{user}{userId}{username}{roleId}{role}| Name | Type | Description |
|---|---|---|
{guildId} | string | Server ID. Example: |
{guild} | string | Server name. Example: |
{user} | string | Display name of the user who triggered the event. Example: |
{userId} | string | Platform user ID of the chatter or actor. Example: |
{username} | string | Login name of the user (lowercase on Twitch). Example: |
{roleId} | string | Role ID. Example: |
{role} | string | Role of the user (for example everyone, mod, broadcaster, vip, subscriber). Example: |
Conditions
| Condition | Description |
|---|---|
| Username | Match chatter username (equals, contains, starts with, ends with). Leave empty to always match. |
| Guild ID (optional) | Filter on Guild ID (optional). Configure in the trigger condition editor. |
| Role ID (optional) | Filter on Role ID (optional). Configure in the trigger condition editor. |