create role in server (server) with name (name) with color (color) position (position) hoisted? (hoisted) mentionable? (mentionable)
Create a role.
Requires the following blocks to be present in the project: discord login
Parameters
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. |
Output
role - The role that was created.