Skip to content

Conversation

JJeeff248
Copy link
Contributor

@JJeeff248 JJeeff248 commented Nov 28, 2021

This PR adds the /role-select command which allows Moderators to send a message where users can select their own roles much like we currently have in the demand_a_role channel on the server.

This addresses #217 and also implements the suggestion of using selection menus.

So far there are two sub-commands, all and choose.

  • all will list all the available roles for users to select from
  • choose lets the mod select the roles to display

Both sub-commands allow for a title and description which get sent in an embedded message above the selection menu.

image

Things I'm wanting to improve/add:

  • UX design. I was thinking a way to include emotes could be nice.
  • Allow users to deselect roles to remove them

@JJeeff248 JJeeff248 requested review from a team as code owners November 28, 2021 10:13
@JJeeff248 JJeeff248 self-assigned this Nov 28, 2021
@JJeeff248 JJeeff248 linked an issue Nov 28, 2021 that may be closed by this pull request
@Tais993
Copy link
Member

Tais993 commented Nov 28, 2021

Currently this shows who ran the command.
image

Thoughts on sending an ephemeral message to the user ".. went successfull"
And sending an actual message to the channel? This way it doesn't display the command.

@JJeeff248
Copy link
Contributor Author

Thoughts on sending an ephemeral message to the user ".. went successfull"
And sending an actual message to the channel?

I like it, I think this helps keep things looking clean.

Implemented in 9312729.

Now looks like this:
image

@JJeeff248
Copy link
Contributor Author

I realised I should've shown how the different commands look so have some screen shots below.

This is /role-select all

image

This is /role-select choose

image

And this is what happens when you select a role
image

@Zabuzard Zabuzard added this to the Migrate existing commands milestone Nov 29, 2021
@Zabuzard Zabuzard added enhance command Modify or improve an existing command or group of commands of the bot new command Add a new command or group of commands to the bot priority: normal and removed enhance command Modify or improve an existing command or group of commands of the bot labels Nov 29, 2021
Copy link
Member

@Tais993 Tais993 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Regardless of my comments, you did a good job 👍

@JJeeff248 JJeeff248 force-pushed the feature/migrate_reaction_roles branch from ea71c0e to 84715e1 Compare November 30, 2021 20:42
@Zabuzard
Copy link
Member

Zabuzard commented Dec 7, 2021

@JJeeff248 Your still on it? Or should someone else take over? :)

@JJeeff248 JJeeff248 force-pushed the feature/migrate_reaction_roles branch from c1d1c80 to ceb516e Compare December 7, 2021 20:52
@JJeeff248
Copy link
Contributor Author

I'm still on it, just been a busy week :)

@JJeeff248 JJeeff248 force-pushed the feature/migrate_reaction_roles branch from ceb516e to 3050425 Compare December 7, 2021 23:33
Copy link
Member

@Tais993 Tais993 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a full review, but noticed it so

JJeeff248 and others added 10 commits December 13, 2021 16:23
The bot now sends a message with the menu and embed to the channel instead of replying to the even
Code clean up using suggestions from Tais993
Code clean up using suggestions from Tais993
Removed Objects#requiresNotNull as not needed.
Zabuzard and others added 22 commits December 17, 2021 16:55
This time really set log4j on 2.16+
* marks issues and PRs after 30 days of inactivity
* then closes after 5 additional days of inactivity
The bot now sends a message with the menu and embed to the channel instead of replying to the even
Code clean up using suggestions from Tais993
Code clean up using suggestions from Tais993
Removed Objects#requiresNotNull as not needed.
Shortened some lines by simplifying the code. Also added some checks to see if a role has been removed from the server.
@github-actions
Copy link

This pull request is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the stale label Jan 16, 2022
@Tais993
Copy link
Member

Tais993 commented Jan 20, 2022

@JJeeff248 do you've time this week or possibly next week to finish this PR, otherwise I (or maybe someone else) could finish it

@github-actions github-actions bot removed the stale label Jan 21, 2022
@JJeeff248
Copy link
Contributor Author

Sorry I've been inactive. I wont have much free time to finish off this command for awhile unfortunately. I am happy for someone else to take over and finish it up :)

@Tais993
Copy link
Member

Tais993 commented Jan 23, 2022

Will take over ^^

@Tais993 Tais993 closed this Jan 23, 2022
@Tais993 Tais993 mentioned this pull request Jan 23, 2022
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new command Add a new command or group of commands to the bot priority: normal

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate the role reactions activity

6 participants