# Edit a role

> Rename a role, or change its colour, its permissions or whether it can be mentioned.

Source: https://docs.buildcord.dev/nodes/server/edit-role/

`role.edit` changes a role. Anything left empty, or set to **Unchanged**, stays as it is.

## Settings

| Setting | What it does |
| --- | --- |
| Role | The role to change. |
| New name | Its new name. |
| Colour | `#RRGGBB`, `#RGB` or a name such as `red`. |
| Shown apart | Yes, No or Unchanged. |
| Anyone can mention it | Yes, No or Unchanged. Making a role mentionable is how members get to ping it. |
| Permissions | When given, these replace the role's permissions. |
| Audit log reason | The reason Discord records. |

## Ways out

`out`. Turn on **If it fails** for a red way out.

## Notes

- The bot needs the Manage Roles permission, and the role must sit below the bot's highest.

## Example

A `/color` command with a text option: change the member's own colour role to `{option.hex}`.

## Related

- [Create a role](https://docs.buildcord.dev/nodes/server/create-role)
- [Delete a role](https://docs.buildcord.dev/nodes/server/delete-role)
