Reaction Roles

Let members assign themselves roles via reactions, buttons or a dropdown.

Purpose: Reaction role panels link an emoji, a button or a dropdown option to a role. The bot posts (or attaches to) a message; when a member clicks it, the bot adds or removes the matching role. A panel can be a new message with its own embed or be attached to an existing message. Everything is event driven, with no dedicated commands.

Creating panels#

A panel links a channel and message with at least one mapping (emoji, button or option → role). You create it in one of two modes:

  • New message – The bot sends a new message with the panel. You use your own embed (title, description, color, image, thumbnail) or a saved embed from the embed module.
  • Existing message – You provide a channel and message ID (or a link) and the bot attaches to an existing message.

The panels are stored as part of the server settings in data/dashboardSettings.json under the key messageRoles - per server, or per bot and server for custom bots.

Panels persist after sending

The mapping is recognised by channel and message ID. As long as the message stays put and the entry remains, the panel keeps working - including after a bot restart.

Reaction types#

  • Reactions – The bot adds an emoji reaction under the message for each mapping. Clicking grants the role, removing the emoji takes it away again.
  • Buttons – Clickable buttons. Per mapping you choose a label (max. 80 characters) and a color (blurple, grey, green, red). A click toggles the role on or off again.
  • Dropdown – A select menu offering all roles of the panel. The role name is used as the label (max. 100 characters); an emoji is optional.

With Single role only, a member holds at most one of the offered roles at a time: with a dropdown the menu allows only one choice, with buttons the bot removes the member's previous panel role, and with reactions it also removes the member's other reactions on the message.

Each mapping can carry its own short text (max. 200 characters) as a confirmation. It replaces the default “role added” reply.

How roles are granted#

Granting is event-driven, not command-based: the bot reacts to the reaction, button or dropdown, finds the panel via channel and message ID, and toggles the role.

  • With reactions, the confirmation arrives as a direct message to the member. If DMs are closed, the role is still granted - only the confirmation is dropped.
  • With buttons and dropdown, the confirmation is visible only to the member who clicked.
  • A removed reaction emoji takes the matching role away again.

If a role is deleted on the server while the panel still exists, the bot can no longer grant it - button clicks then report that the role no longer exists.

Commands#

CommandDescriptionPermissions
/reaction-rolesCreate a reaction roles system with buttonsAdministrator

→ Details in the command reference

Dashboard settings#

SettingTypeMeaning
Reaction roles module enabledToggleTurns the Reaction roles module on or off.
ModeTextDetermines how the panel is created: New message (the bot sends the embed and the options) or Existing message (a channel and message ID are linked).
Reaction typeTextHow members choose: reactions (classic emoji reaction), buttons (clickable buttons) or dropdown (a select menu with all roles).
Default: reactions
ChannelChannelChannel where the panel is posted or found. Text channels can be selected.
Message IDTextID of the existing message (or a link to it). Only in Existing message mode, where only reactions are possible.
Use an existing embed (optional)TextUses a saved embed from the embed module instead of the title/description fields below. Without a selection, “Own embed” applies.
TitleTextHeading of the own embed. At most 256 characters.
DescriptionTextDescription of the own embed. At most 4096 characters.
ColorTextColor of the own embed (a Discord default color or your own hex value).
Image URLTextURL of an image in the panel embed.
Thumbnail URLTextURL of a small image in the panel embed.
Label (optional)TextLabel of the panel, e.g. “Role selection”. At most 200 characters.
Single role onlyToggleAllows only one choice: with a dropdown one role instead of several, with buttons a different button removes the previous role, with reactions a member can hold only one reaction.
Default: Off
Emoji → roleTextThe panel's mappings. Depending on the reaction type the first value is an emoji, a button label or a dropdown option, and the second is the role that is granted.
Button labelTextLabel of a button. Only for the buttons reaction type. At most 80 characters.
ColorTextButton color: 1 blurple, 2 grey, 3 green, 4 red (Discord's button styles). Only for the buttons reaction type.
Default: 1 (Blurple)
Custom confirmation message on receive (optional)TextMessage shown to the member when they receive the role. At most 200 characters.

Pitfalls#

  • The bot needs the “Manage Roles” permission and must sit above the granted roles in the role hierarchy. Otherwise it cannot assign them.
  • Discord allows at most 25 buttons (5 rows of 5) or 25 dropdown options per panel.
  • An existing message supports emoji reactions only; buttons and dropdowns require a message sent by the bot.
  • With “Single role only”, a member can hold at most one of the offered roles at a time.
Last updated