Actions › Roles
Edit a role
Changes a role's name, color or display — only the fields filled in change
- 1 credit
- Outputs: Success, Failure
- Undone after a test
Fields
What you set in Properties. The grey name is the one in the Blueprint's JSON.
| Field | What it does | |
|---|---|---|
Role to edit roleId | The role this action applies to | required |
New name name | 100 characters at most. | optional |
Color color | A hex code, like #5865f2. | optional |
Display separately hoist | Members with this role show in their own group of the member list. | optional |
Mentionable mentionable | Anyone can mention this role with @. | optional |
Reason reason | optional |
What it passes on
On the Success output, for the nodes after it. Click a value in the editor to copy its reference.
| Data | Path | Type | |
|---|---|---|---|
| ID | role.id | Text | |
| Name | role.name | Text | |
| Color | role.color | Text | |
| Position | role.position | Number | can be empty |
| Mentionable | role.mentionable | Yes/No | can be empty |
| Shown separately | role.hoist | Yes/No |
When it fails
The Failure output receives success (false) and error: error.code, error.message in the server's language, and error.detail, what Discord said. The possible causes are in Errors.
Discord permissions
Manage Roles
What each one allows, and how to grant one later: Bot permissions.