var trigger = role_update()
func main() {
send_text_message(Args{channel_id: "CHANNEL_ID", message_content: "Role ID: " + trigger.role_id})
}
Outputs
Role ID
The ID of the updated role
Example: 123456789012345678
Role Name
The name of the updated role
Example: Moderator
Role Mention
The mention string for the role
Example: <@&123456789012345678>
Server ID
The ID of the server where the role was updated
Example: 234567890123456789
Build a bot using triggers like Role Update
Use this trigger in our visual flow editor. Bots are hosted 24/7 for free on inventor.bot.
Advanced Documentation
This documentation can be useful when using code mode. View as Markdown
ID:
role_updateOutputs
| Field | InventScript name | Value |
|---|---|---|
| Role ID | role_id | e.g. "123456789012345678" |
| Role Name | role_name | e.g. "Moderator" |
| Role Mention | role_mention | e.g. "<@&123456789012345678>" |
| Server ID | server_id | e.g. "234567890123456789" |