Build chat bots with blocks

create role in server (server) with name (name) with color (color) position (position) hoisted? (hoisted) mentionable? (mentionable)

In Discord → Roles

Jump to block

Create a role.

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


Parameter name Parameter type Required? Description
server guild The server to create the role in.
name String The name of the role.
color Colour The color of the role.
position Number The position of the role. Higher = higher up the list. 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 is hoisted.
mentionable Boolean Whether the role is mentionable.


role - The role that was created.