Step 1: The command
- Make a slash command called
colour-rolesand add a permissions check for Manage Roles, so only staff can post it. - On the yes path, add a message block with buttons (search
button). WritePick your colour!and add three buttons: Red, Blue, Green.
Step 2: What each button does
Under the Red button:- Add a check on the roles of the person who pressed it (search
role): do they have the Red role? - Yes: use the block that removes roles to take Red away, then Reply privately
Red removed. - Else: Give roles Red, then Reply privately
You are now Red!
Reply privately (only the person who pressed sees it), so your channel does not fill up with messages.
Variation: a menu instead of buttons
Got lots of roles? Use a select menu (searchmenu) instead. Each option in the menu gets its own blocks, just like a button.