Assign Role

BlockUsers

Assign a role to a user.

Inputs

Server IDRequired

ID of the server to assign the role in.

User IDRequired

ID of the user to assign the role to.

Role IDRequired

ID of the role to assign.

Build a bot using blocks like Assign Role

Use this block 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: assign_role

Inputs

FieldInventScript nameValue
Server IDserver_id
User IDuser_id
Role IDrole_id

Example InventScript

assign_role(Args{
	server_id: trigger.server_id,
	user_id:   "...",
	role_id:   "...",
})

More users blocks