Skip to content

Reaction roles using a SelectionMenu #351

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Feb 15, 2022
Merged

Conversation

Tais993
Copy link
Member

@Tais993 Tais993 commented Jan 23, 2022

Implementation of the reaction roles, this is based of the original PR by JJeff248, see #284

At the moment of writing

  • implement emotes/emojis support based of the Role's icon
  • Look for other possible improvements
  • Take pictures for how the GUI looks
  • replace nonce cause it's unsupported for interactions
  • Fix history

UX:

Slash-command

When running the choose or all command, you get asked for what the embed's title and description has to be.
image

Choose sub-command

When running the choose command, it displays the embed you gave, and it allows you to select roles.
image

After selecting the roles, it sends a message with a SelectionMenu for the roles.
image

Role selection by user

After this, the UX is the same for choosing the roles yourself or just picking all roles.

Once you select the roles, it sends a message saying your roles have been "updated"
image

Notes

  • Emoji roleicon support has been added, emotes support unfortunately can't be added (to my knowledge). Can't test due to not having a level 2 server

  • For in the future when modals / forms get released, we might want to make it a modal so we can add a description and such. But that won't be this PR most likely

@Tais993 Tais993 added new command Add a new command or group of commands to the bot priority: normal labels Jan 23, 2022
@Tais993 Tais993 added this to the Improvement phase 1 milestone Jan 23, 2022
@Tais993 Tais993 self-assigned this Jan 23, 2022
@Tais993 Tais993 linked an issue Jan 23, 2022 that may be closed by this pull request
@Tais993 Tais993 force-pushed the feature/migrate_reaction_roles branch 2 times, most recently from df6e067 to 7534a15 Compare January 24, 2022 00:14
@Tais993 Tais993 marked this pull request as ready for review January 24, 2022 15:07
@Tais993 Tais993 requested review from a team as code owners January 24, 2022 15:07
@Tais993 Tais993 marked this pull request as draft January 24, 2022 15:48
@Tais993
Copy link
Member Author

Tais993 commented Jan 24, 2022

Can't test due to DB issues, so back to a draft for now

@Tais993 Tais993 marked this pull request as ready for review January 24, 2022 16:52
@Tais993
Copy link
Member Author

Tais993 commented Jan 24, 2022

Added screenshots for UX ^^

@Tais993 Tais993 force-pushed the feature/migrate_reaction_roles branch from ca58c5c to 2ce80eb Compare January 24, 2022 21:55
@Tais993 Tais993 force-pushed the feature/migrate_reaction_roles branch from 3261ef4 to d4ca130 Compare January 27, 2022 12:26
@Tais993 Tais993 dismissed java-coding-prodigy’s stale review February 2, 2022 11:43

no-one cares enough, so it'll stay like that

Tais993 and others added 4 commits February 3, 2022 22:11
DUDE I THOUGHT, ITS SUCH A TINY CHANCE, NO WAY ILL FUCK UP SPOTLESS. THEN I DO? ARE YOU SERIOUS? IATRHAWGRTUSEGTH Se UIRSE
@Tais993 Tais993 force-pushed the feature/migrate_reaction_roles branch from 6f61484 to 958f9cc Compare February 3, 2022 21:12
@Tais993
Copy link
Member Author

Tais993 commented Feb 6, 2022

This PR has been stale for 10 days, could anyone review please?

Comment on lines +203 to +204


Copy link
Member

Choose a reason for hiding this comment

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

Two newlines is one too much

@Tais993 Tais993 requested a review from Zabuzard February 7, 2022 16:43
@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 7, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@Tais993 Tais993 merged commit 49303cc into develop Feb 15, 2022
@Tais993 Tais993 deleted the feature/migrate_reaction_roles branch February 15, 2022 09:37
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
5 participants