Piecewise

Build chat bots with blocks

edit role (role) with name (name) with color (color) with position (position) hoisted? (hoisted) mentionable? (mentionable)

In Discord → Roles

Jump to block

Edit a role.

Requires the following blocks to be present in the project: discord login

Parameters

Parameter name Parameter type Required? Description
role role The role to edit.
name String The new name of the role.
color Colour The new color of the role.
position Number The new position of the role. Higher = higher up the list. The maximum is the number of roles in the server. Invalid values will be resolved to 1.
hoisted Boolean Whether the role should now be hoisted.
mentionable Boolean Whether the role should now be mentionable.

Output

void - This is a statement with no outputs