Skip to main content
Everything here requires Manage Roles, and mira’s own role has to sit above any role you’re asking it to assign.

Assigning

The bare role command toggles — it adds the role if they don’t have it and removes it if they do. add and remove are explicit when you need certainty. role multiple (aliases multi, m, x) is the same as passing several roles to role. Role names don’t need to be exact. !role @someone mod matches “Moderator” as long as nothing else is closer.

Mass assignment

These run in the background and report progress. Cancel one mid-run with:
Mass role operations on a large server take a while — Discord’s rate limits, not the bot. A 50,000 member server is minutes, not seconds. Leave it running; !role cancel stops it cleanly if you need to.

Creating and editing

Inspecting

roleinfo and ri are shortcuts for role info. role dump writes every member with the role to a text file — useful for audits or migrating a role between servers.

Positioning

Aliases: pos, move.

Temporary roles

The role is removed automatically when the duration elapses. temprole list shows every active grant with its ID and expiry; temprole cancel <id> ends one early and removes the role immediately. Aliases: tempr, trole, tmprole, tmpr.

Linked roles

Link two roles so gaining either one grants the other:
Links are bidirectional by default — losing one removes the other too. Useful for keeping a cosmetic role in sync with a functional one, or mirroring a role granted by another bot.

Restoring roles

mira caches every member’s roles. role restore re-applies them, which fixes the common “they left and came back and lost everything” problem. With reassign on, it happens automatically the moment they rejoin.
Exclude your staff roles before turning reassign on. Otherwise a moderator you removed and who rejoins gets their permissions back automatically.
Muted and jailed members are handled separately — those roles persist across rejoins regardless.

Syncing permissions

Copies every channel permission overwrite from one role to another. Requires Manage Channels and Manage Roles. Handy when replacing a role — set the new one up, sync the overwrites, then delete the old one.

Command reference

For roles members assign themselves — reaction roles, button roles, dropdowns, autoroles, booster colours — see Self-assignable roles and Automatic roles.