A Discord bot that allows users to self-assign roles using reactions.
- Follow the instructions in create-discord-bot.
Don't forget to give your bot the
Manage Roles
permission!
-
Download this widget and add it into the src/widgets folder.
-
Open config.json to configure your own settings:
[
{
"messageId": "MESSAGE_ID",
"channelId": "TEXT_CHANNEL_ID",
"isUnique": true,
"emojiRoleMap": {
"EMOJI_1": ["ROLE_1_ID"],
"EMOJI_2": ["ROLE_2_ID"],
"EMOJI_3": ["ROLE_3_ID", "ROLE_4_ID"],
// ...Add as many emoji-role mappings as you want.
}
},
// ...Add as many rules as you want.
]
If
isUnique
istrue
, the user can select only one role group at a time (gif above). Iffalse
, the user can select as many role groups as they want.
EMOJI_N
can be a unicode emoji or an emoji id for custom emojis.
An emoji can map to multiple roles as seen in
EMOJI_3
above.
Visit for more help or information!