YAGPDB Reaction Roles 2026: Role Menu and Exclusive Roles

Published on | Updated

Set up YAGPDB reaction roles in 2026: role commands and a group in the control panel, then /rolemenu create. Single mode keeps one role per group.

Cartoon bot mascot sitting on a small server box with online status lights

To set up YAGPDB reaction roles, create a role group and one role command per role under Roles > Role Commands in the control panel, then run /rolemenu create with the group's name in the channel where the menu should appear. For mutually exclusive roles, set the group's Mode to Single and tick Remove existing role when assigning another role in group, so picking a new colour replaces the old one.

The commands older guides give, -rolemenu create and -customembed, no longer do anything. YAGPDB's command settings page says built-in commands typed with the prefix are now "simply ignored". You run them as slash commands, or by starting the message with a mention such as @YAGPDB.xyz rolemenu create Colours. Everything below uses the slash form and was checked against YAGPDB's documentation and its source code on 25 October 2026.

What mutually exclusive roles do in YAGPDB

Mutually exclusive means a member holds one role from a group at a time: one colour, one region, one faction. In YAGPDB that is the group mode Single, and two checkboxes decide what happens when someone who already has a role from the group picks another one. This is how YAGPDB's role code handles each combination:

Single mode checkboxesMember picks a second roleMember removes their role
Neither tickedRefused, with a DM: "Max 1 role in this group/rolemenu is allowed"Allowed
Remove existing role when assigning another role in groupThe old role is swapped for the new oneAllowed
Require 1 role in group at all times (after initial assignment)RefusedRefused: "Need at least one role in this group/rolemenu"
Both tickedThe old role is swapped for the new oneRefused

The first row suits groups where members must drop their role before taking another. The second is the usual setup for colour roles. The third makes a choice final, which is what YAGPDB's docs suggest for factions: only staff can change it afterwards. The fourth fits region or ping roles where everyone should always keep exactly one.

Single mode also has a one second cooldown per member. Anyone who clicks faster gets "You're changing roles too quickly. Please wait a second and try again."

The other two modes: Standard (YAGPDB's docs call it None) only checks the Requires roles and Ignore roles lists, and Multiple lets you set a minimum and a maximum number of roles from the group, each between 0 and 250.

Before you start: invite YAGPDB and fix the role order

  1. Open yagpdb.xyz, click Add to server and log in with Discord. In the control panel's server selector, servers without YAGPDB carry a plus sign: pick yours and confirm the invite on Discord's screen. YAGPDB's panel reminds you to have Manage Server and to be logged into the right account. Discord's apps guide says adding an app to a server takes the owner or the Manage Server permission, and the bot then shows up under Server Settings > Integrations > Bots and Apps.
  2. Create the roles members can pick in Server Settings > Roles. Discord puts new roles at the bottom of the list, just above @everyone, and a role can only manage roles below its own position (Discord's roles guide). Drag YAGPDB's role above every role it should hand out and give it Manage Roles.
  3. In the channel for the menu, YAGPDB needs View Channel, Send Messages, Read Message History, Add Reactions and Manage Messages. Discord's API asks for Send Messages to post the menu and its setup messages, for Read Message History on every reaction a bot adds, for Add Reactions when the bot is the first to use an emoji on the message, and for Manage Messages to remove someone else's reaction (message reference). YAGPDB removes reactions when it refuses a role and when you reset a menu.
  4. Every /rolemenu command needs the Manage Server permission. YAGPDB's docs say this is hard-coded, so command overrides do not change it.

Step 1: Create a role group and choose its mode

In the control panel, open Roles > Role Commands. The page has an Ungrouped / Home tab plus one tab per group. On the right of the Home tab is Create new group:

  1. Name: the name you type in /rolemenu create, for example Colours. Up to 100 characters.
  2. Mode: Standard, Single or Multiple. Choosing Single shows the two checkboxes from the table above; choosing Multiple shows Minimum number of roles and Maximum number of roles.
  3. Requires roles and Ignore roles (optional): only members with one of the required roles can use the group, and members with an ignored role are left out. YAGPDB's docs warn against putting the role being handed out in the required list.
  4. Click Create new group.

If you cannot find the mode later, open the group's own tab. It shows Group settings for: with the group's name, the Mode dropdown, the mode checkboxes and Temporary roles (minutes), which takes a role away again after up to 1,440 minutes. Leave that at 0 for roles that should stay. Save your changes with the disk icon button at the top right of that card.

Step 2: Add a role command for each role

On the left of the same page is Create new role command:

  1. Name: what the menu shows next to the emoji and what members type after /role. Keep it short: Red, EU, Raid pings.
  2. Group: the group from step 1. A role command can only be in one group.
  3. Role: the Discord role it gives.
  4. Requires roles and Ignore roles for this one role, if you need them.
  5. Click Create new role command and repeat for every role.

A server can have up to 1,000 role commands and 1,000 groups (web.go). During setup YAGPDB asks for the emojis in the order the commands have in the group; the up and down arrow buttons next to each command change that order.

Step 3: Post the menu with /rolemenu create

  1. Go to the channel where the menu belongs, type /rolemenu create and choose your group in the group option. It autocompletes group names.
  2. YAGPDB posts a menu message and a setup message such as [0/3] with "React with the emoji for the role command: Red". React on the menu message with the emoji you want for that role. YAGPDB adds the same reaction and asks for the next one.
  3. After the last role the setup message changes to "Done setting up!", lists the menu's settings and says you can delete all the messages except the menu itself.

Only the person who ran the command can set emojis. If someone else reacts during setup, YAGPDB leaves that reaction on the message and swaps the setup text for "Someone is currently editing or setting up this menu, please wait", so build the menu before members can see the channel. Custom emoji must come from a server YAGPDB is in, otherwise it answers that it "can only use emojis from servers im on". The finished menu reads Role Menu: Colours, "React to give yourself a role." and one line per emoji with the role command's name.

/rolemenu create has four optional settings, none of which a basic menu needs (bot.go, menu.go):

OptionWhat it doesIf you leave it out
mUses an existing message in the same channel, by its message IDYAGPDB posts its own menu message
dmSet to True: members get a DM such as "Gave you the role!"No confirmation DMs
rrSet to True: every reaction switches the role on or off, and removing a reaction does nothingAdding a reaction gives the role, removing it takes the role away
skipLeaves out the first roles of the group, for a second menu0

Even with DMs off, YAGPDB still DMs a member when it cannot give a role, for example after a click within the cooldown. Its docs say error messages cannot be switched off.

Use your own message or embed

YAGPDB's own menu text is plain. For a menu with a title, a colour bar and some rules text, post the message first and attach the menu to it:

  1. Run /simpleembed with the options you need, for example /simpleembed title:Pick your colour desc:One colour at a time. color:#5865F2. YAGPDB sends it as a normal message in the channel (custom embeds docs). The command needs Manage Messages.
  2. Or build it in the control panel under Tools & Utilities > Message Creator, which has a live preview, sends the message as YAGPDB and can edit it later. It allows one send or edit per minute (Message Creator docs).
  3. Turn on Developer Mode in Discord under User Settings > Advanced, right-click the message and choose Copy Message ID (Discord's guide).
  4. In the same channel, run /rolemenu create with the group and paste the ID into the m option. YAGPDB looks the message up in the channel where you run the command, so running it anywhere else fails.

/customembed still exists and takes the embed as JSON, but it posts the embed as the reply to your command. If Slash command response always ephemeral is switched on in YAGPDB's command settings, only you can see that reply, so members could never react to it. That makes /simpleembed or the Message Creator the safer choice.

On a menu built with m, YAGPDB only adds the reactions and leaves the text alone. When you add a role later, edit the text yourself: the Message Creator's Edit mode and the message option of /simpleembed both work on messages YAGPDB sent.

Change a menu later

Each of these takes the menu's message ID, except /rolemenu listgroups:

  • New role in the group: create its role command, then run /rolemenu update. YAGPDB asks for an emoji for every role the menu does not have yet.
  • Confirmation DMs: /rolemenu update with nodm set to True switches them. It is a toggle, not an off switch: on a menu without DMs, which is the default, running it once turns DMs on. The settings line after setup shows the state, and -nodm: true there means no DMs.
  • Reaction removal: /rolemenu update with rr set to True switches between the default mode and the toggle mode from the table above.
  • Another emoji for a role: /rolemenu editoption, react on the option you want to change, then react with the new emoji. Run /rolemenu resetreactions afterwards; it removes all reactions and adds them again in the right order.
  • Detach the menu: /rolemenu remove stops YAGPDB from acting on that message. The message itself stays.
  • Forgot the group's exact name: /rolemenu listgroups.

More than 20 roles

Discord allows 20 different reactions on one message (error 30010 in its error code list), so a YAGPDB menu stops at 20 options. When a group has more, YAGPDB fills the first menu and tells you to put the rest on a second one: run /rolemenu create again with the same group and skip set to 20. /rolemenu complete marks a menu as done early if you want fewer roles on the first message.

Without a menu: the /role command

Members can also type /role with a role command's name to toggle that role, or /role on its own to list every role command on the server. The group rules still apply: in a Single group, /role swaps or refuses a second colour exactly as the menu does. It needs no menu message, which makes it handy for roles you would rather not show on a public board.

Reactions or buttons

YAGPDB's role menu works with reactions only. The role commands plugin listens for reactions being added and removed (bot.go) and has no button mode, and reactions remain a normal Discord feature with the 20 per message limit above.

Buttons are possible through custom commands. The Message Creator can attach buttons to a message, YAGPDB adds a templates- prefix to each button's custom ID, and a custom command with the Message Component trigger runs when someone clicks one. The code that gives or takes the role is yours to write and test; YAGPDB's custom interactions docs explain how those triggers work. For most servers the reaction menu is the quicker route.

If you would rather not use a bot at all, Discord's own Onboarding lets members pick roles while they join a Community server (Discord's Community guide). Our Discord reaction roles guide walks through Onboarding next to Carl-bot's /reactionrole boards.

Troubleshooting: common setup mistakes

MistakeWhat you seeFix
Typed -rolemenu createNo answer, at most a short reminder to use the slash commandUse /rolemenu create or start the message with @YAGPDB.xyz
YAGPDB's role sits below the role it givesThe member gets a DM: "The bot is below the role, contact the server admin"Drag YAGPDB's role above it in Server Settings > Roles
Manage Roles missing on YAGPDB's roleThe role is not given and the member gets an error DMTurn on Manage Roles for YAGPDB's role
Single group without the swap checkbox"Max 1 role in this group/rolemenu is allowed" and YAGPDB removes the reactionTick "Remove existing role when assigning another role in group"
Group name typed wrong"Did not find a role group with that name; did you mean ...?" or "Did not find the role command group specified."Pick the group from the autocomplete list
Group has no role commands"No commands in this group."Set the Group field on each role command
Custom emoji from another server"I do not have access to that emoji"Use an emoji from a server YAGPDB is in
Add Reactions denied for @everyone in the menu channel/rolemenu resetreactions clears the menu and cannot put the reactions backAllow Add Reactions for YAGPDB's role on that channel
Pickable roles carry permissionsMembers get powers you did not mean to giveKeep self-assignable roles cosmetic

The Add Reactions row needs a word of explanation. Turning off Add Reactions for @everyone keeps members to the reactions already on the menu (Discord's channel permissions page). That channel deny also hits YAGPDB, though, because Discord applies a deny for @everyone after the permissions a bot gets from its roles, and only a channel allow for a specific role comes later (permissions reference). Setup still works as long as you can react there yourself, since the bot only repeats your emoji, but a reset removes every reaction and then needs Add Reactions to put them back. Give YAGPDB's role its own allow on that channel before you need it.

Does it need YAGPDB Premium?

No. Role commands, groups and menus work on free servers within the limits above: 1,000 role commands, 1,000 groups and 20 roles per menu message. One detail differs. In Single mode, after a swap, YAGPDB removes the member's other reactions from the menu only on premium servers (menu.go). On a free server the old reaction stays visible even though the role has changed. Members can take it off themselves, and removing it does not bring the old role back.

Test it and check the audit log

Test with a second account that has no staff roles. React to one option and check the role appears, then react to another option in a Single group and check the first role is gone.

Then open the audit log in Server Settings, which needs the View Audit Log permission. Every role YAGPDB gives or takes shows up there as a member role update by YAGPDB, and Discord keeps entries for 45 days (audit log docs). No entry means the bot never changed the role: look in the test account's DMs for YAGPDB's error message.

Hosting your own bot instead

The public YAGPDB bot runs on its developers' servers, so you only need hosting when you run a bot of your own, for example button roles with your own logging, or a menu that also writes to a database. A reaction role bot for one community fits in 512 MB. Our Discord bot hosting Growth plan has 512 MB RAM, 10 GB NVMe storage, no sleep mode and auto restart on crash, from €0.50 a month, billed €3.00 every 6 months plus a one-time €0.50 setup fee.

FAQ

Why does YAGPDB not respond to -rolemenu? YAGPDB no longer runs built-in commands typed with the prefix. Use /rolemenu create, or start the message with a mention such as @YAGPDB.xyz rolemenu create Colours. Custom commands you wrote yourself keep their text triggers.

Where is the mode setting in YAGPDB? In the control panel under Roles > Role Commands. A new group gets it in the Create new group form. For an existing group, open the group's own tab next to Ungrouped / Home, change Mode in its group settings and save with the disk icon button at the top right of that card.

How do I make YAGPDB roles mutually exclusive? Put the roles in one group with Mode set to Single. Tick "Remove existing role when assigning another role in group" if members should be able to switch, and "Require 1 role in group at all times" if they must always keep one.

How do I add a role to an existing YAGPDB role menu? Create the role command in the same group, then run /rolemenu update with the menu's message ID and react with the emoji YAGPDB asks for.

Can YAGPDB give a role automatically when someone joins? Yes, under Roles > Autorole. Pick the role in "Automatically assign members this role" and, if you want, a number of minutes of membership first. Another option assigns the role only after a member completes Discord's Membership Screening.

Do YAGPDB role menus need Premium? No. The only premium part is the cleanup of a member's old reactions after a swap in Single mode.