> ## Documentation Index
> Fetch the complete documentation index at: https://docs.curebot.site/llms.txt
> Use this file to discover all available pages before exploring further.

# /roles

> Create and manage roles, reaction roles, permission checks and fake permissions.

> [!TIP]
>
> Type the command in Discord and pick from the list. Discord asks for each option in turn, so you don't need to remember the order. Options marked optional can be left out.

## Main commands

### /roles roles

List every role in the server.

No options.

## /roles role

Manage server roles.

### /roles role create

Create a role above the configured base.

* `name`: Name for the new role.

### /roles role base

Set the baseline for roles created by the bot.

* `role`: Role to use. Pick a role.

### /roles role toggle

Toggle a role for a member.

* `user`: Member to update. Pick a member.
* `role`: Role to use. Pick a role.

### /roles role add

Give a member a role.

* `user`: Member to update. Pick a member.
* `role`: Role to use. Pick a role.

### /roles role remove

Remove a role from a member.

* `user`: Member to update. Pick a member.
* `role`: Role to use. Pick a role.

### /roles role color

Set a solid, gradient, or holographic role colour.

* `role`: Role to use. Pick a role.
* `color`: Hex colour or holographic.
* `second_color` (optional): Second gradient hex colour.

### /roles role delete

Delete a role.

* `role`: Role to use. Pick a role.

### /roles role edit

Edit role visibility, mentions, or permissions.

* `role`: Role to use. Pick a role.
* `hoist` (optional): Show role members separately. True or false.
* `mentionable` (optional): Allow anyone to mention the role. True or false.
* `permissions` (optional): Comma-separated permission changes; use + or -.

### /roles role rename

Rename a role.

* `role`: Role to use. Pick a role.
* `name`: New role name.

### /roles role icon

Set a role icon from an emoji, attachment, or URL.

* `role`: Role to use. Pick a role.
* `source` (optional): Unicode/custom emoji or image URL.
* `attachment` (optional): Role icon image. Attach a file.

### /roles role has

Apply an action when members have a role.

* `condition_role`: Role members must have. Pick a role.
* `action`: Action to apply. One of `grant`, `deny`.
* `target_role`: Role to grant or remove. Pick a role.

### /roles role lacks

Apply an action when members lack a role.

* `condition_role`: Role members must lack. Pick a role.
* `action`: Action to apply. One of `grant`, `deny`.
* `target_role`: Role to grant or remove. Pick a role.

### /roles role members

List every member with a role.

* `role`: Role to use. Pick a role.

### /roles role bots

List bots with a role.

* `role`: Role to use. Pick a role.

### /roles role humans

List humans with a role.

* `role`: Role to use. Pick a role.

### /roles role copy

Copy a role.

* `role`: Role to use. Pick a role.

### /roles role move

Move a role to a position or above another role.

* `role`: Role to use. Pick a role.
* `destination`: Position number or destination role ID/name.

### /roles role cleanup

Identify empty, duplicate, dangerous, and unused roles.

No options.

### /roles role mass-grant

Grant a role to members matching a safe condition.

* `role`: Role to use. Pick a role.
* `condition`: All, bots, humans, has role, lacks role, or inactive duration.

### /roles role mass-remove

Remove a role from members matching a safe condition.

* `role`: Role to use. Pick a role.
* `condition`: All, bots, humans, has role, lacks role, or inactive duration.

### /roles role restore

Give a member back their roles, or recreate a deleted role.

* `user` (optional): Member to give back the roles they had before leaving or losing them. Pick a member.
* `role` (optional): Or: a deleted role's name or ID to recreate.

### /roles role temporary

Give a member a role temporarily.

* `user`: Member to update. Pick a member.
* `role`: Role to use. Pick a role.
* `duration`: Duration such as 30m, 2h, or 7d.

## /roles reactions

Create and manage reaction roles.

### /roles reactions add

Add a reaction role.

* `message`: Message ID or link.
* `emoji`: Unicode or custom emoji.
* `role`: Role to toggle. Pick a role.

### /roles reactions remove

Remove a reaction role.

* `message`: Message ID or link.
* `emoji`: Configured emoji.

### /roles reactions list

List reaction roles.

No options.

## /roles permissions

View and explain Discord and bot permissions.

### /roles permissions view

View permissions for a member or role.

* `user` (optional): Member; defaults to you. Pick a member.
* `role` (optional): Role instead of a member. Pick a role.
* `channel` (optional): Include channel overrides. Pick a channel.

### /roles permissions explain

Explain one permission for a member.

* `permission`: Permission or command action, such as ban.
* `user` (optional): Member; defaults to you. Pick a member.
* `channel` (optional): Channel to evaluate. Pick a channel.

### /roles permissions moderation

Simulate whether one member can moderate another.

* `action`: Ban, kick, timeout, mute, purge, or nuke.
* `actor`: Moderator to evaluate. Pick a member.
* `target`: Target member. Pick a member.

### /roles permissions map

Render a Mermaid permission-access flowchart.

* `channel`: Channel to map. Pick a channel.

## /roles fake

Grant bot-only permissions to staff roles.

### /roles fake grant

Grant fake permissions.

* `role`: Staff role. Pick a role.
* `permissions`: Space or comma-separated permissions.

### /roles fake remove

Remove fake permissions.

* `role`: Staff role. Pick a role.
* `permissions`: Permissions or all.

### /roles fake clear

Clear all fake permissions from a role.

* `role`: Staff role. Pick a role.

### /roles fake list

List configured fake permissions.

* `role` (optional): Optional role filter. Pick a role.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.