Role Update

Event triggerRoles

Triggers when a role is updated.

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_update

Outputs

FieldInventScript nameValue
Role IDrole_ide.g. "123456789012345678"
Role Namerole_namee.g. "Moderator"
Role Mentionrole_mentione.g. "<@&123456789012345678>"
Server IDserver_ide.g. "234567890123456789"

Example InventScript

var trigger = role_update()

func main() {
	send_text_message(Args{channel_id: "CHANNEL_ID", message_content: "Role ID: " + trigger.role_id})
}

More roles triggers