Button and reaction roles in NadekoBot
NadekoBot lets members of your server give themselves roles: they click a button under a message, react with an emoji, or type .iam and the role name. You choose the roles, and you can allow one role per member from a set or ask for a server level first.
Button roles
Button roles put a button for each role under a message. A member clicks a button to get the role and clicks it again to drop it. Each button shows your emoji and the role's name, and one message holds up to 25 buttons, in rows of 5.
NadekoBot adds buttons only to a message it sent, so post the message first - with .say #roles and your text, or .say with an embed from the embed builder. Then add a button for each role with .btr add, the message link, an emoji and the role.
By default a member can take every role on the message. .btr excl with the message link or ID and enable allows one role per member, and a click on another button swaps the role. .btr list lists every button role on your server, and .btr rem removes one button.
-
.sayMake NadekoBot send your message, in this channel or another one. -
.btr addAdd a button that gives a role to a message NadekoBot sent. -
.btr exclAllow members one role from a message, or any number of them. -
.btr listList the button roles on your server, one message per page. -
.btr remRemove the button of one role from a message.
Reaction roles
Reaction roles give a role to a member who reacts to a message with an emoji, and take it back when the member removes the reaction. They work on any message, also one that a member or another bot sent.
Type .reroadd in the channel of the message, with the message ID, the emoji and the role. NadekoBot reacts with the emoji first, so members only have to click it. Two numbers can follow the role: a group and a server level.
In group 0, the default, a member can take every role. In any other group a member keeps one role from that message - a reaction for a new role removes the other roles of that group. With a level, members below that server level get no role.
.rerolist shows the reaction roles of your server with their groups and levels. .reroemote changes the emoji of a role, .rerotransfer moves the reaction roles to another message, and .reroremove removes them from a message.
-
.reroaddGive a role to members who react to a message with an emoji. -
.rerolistShow the reaction roles of your server, with their groups and levels. -
.reroemoteChange the emoji of a reaction role. -
.rerotransferMove the reaction roles of one message to another message. -
.reroremoveRemove one reaction role, or all of them, from a message.
Self-assignable roles with .iam
Self-assignable roles need no message: a member types .iam and the role name to get a role, and .iamnot to drop it. .sar list shows the roles members can take, 20 to a page.
Add a role to the list with .sar add. A number before the role puts it in a group, like .sar add 1 Red, and .sar exclusive 1 lets members keep one role from group 1 - .iam Blue then removes Red. Run .sar exclusive 1 again to turn it off. .sar groupname gives a group a name in .sar list.
A role can need a server level, set with .sar rolelvlreq, and a group can need another role first, set with .sar grouprolereq. .sar ad makes NadekoBot delete each .iam and .iamnot message, and its reply, after 3 seconds, until you run it again.
-
.iamGive yourself a self-assignable role. -
.iamnotRemove a self-assignable role from yourself. -
.sar listList the self-assignable roles, by group. -
.sar addAdd a role to the self-assignable list, in a group if you give a number. -
.sar exclusiveTurn one role per member on or off for a group. -
.sar groupnameGive a group of self-assignable roles a name. -
.sar rolelvlreqSet the server level a member needs for a role. -
.sar grouprolereqSet a role members need before they pick from a group. -
.sar adTurn on or off the deletion of .iam and .iamnot messages and NadekoBot's replies after 3 seconds.
Set it up in 3 steps
- Invite NadekoBot, then move its role above the roles it gives, in Server Settings > Roles.
- Post the message for the buttons:
.say #roles Pick your roles - Add a button for each role, with the link to that message:
.btr add <message link> 🎮 Gamer
Questions about button and reaction roles
How do I give a role when someone reacts with an emoji?
Type .reroadd in the channel of the message, with the message ID, the emoji and the role - for example .reroadd 1311522409231482880 🎮 Gamer. NadekoBot adds the emoji to the message, and members who click it get the role. On a message that NadekoBot sent, .btr add does the same with a button.
Why doesn't NadekoBot give the role?
NadekoBot can only give roles below its own highest role, and it needs the Manage Roles permission. Move the NadekoBot role above those roles in Server Settings > Roles. To set up a role you also need Manage Roles and a role above that role, unless you own the server.
Can I use NadekoBot only for self-assignable roles?
Yes - turn off all modules with .asm disable. The same command keeps every module on for you, the admin who ran it, so run the next commands yourself. Buttons and reactions keep working, because members click or react instead of typing a command. To keep .iam for members, turn the two commands on again: .sc .iam enable and .sc .iamnot enable. Members can't use .sar list after that, so list the roles in a message in your roles channel.
How many roles fit on one message?
Up to 25 button roles, in rows of 5 buttons. For reaction roles, Discord allows 20 different reactions on one message.
Can a role need a server level?
Yes. For a reaction role, put a group and the level after the role: .reroadd 1311522409231482880 🔵 Blue 1 5 puts Blue in group 1 and gives it from server level 5. For .iam, .sar rolelvlreq 5 Blue sets the level. Members earn server levels with NadekoBot's XP.