question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add optional reason for role assignment

See original GitHub issue

If a user is a certain role on the discord server, but they did not assign that role to themselves, that might confuse them. In cases where the bot assigns a role if a condition passes, we could also save that reason for the new user’s role (on the DB perhaps).

This feature’s goal is to let the user execute a command or mention the bot, that gives them that reason, for a given role. E.g: <command-prefix>role <user-name> <role-name>

or

@EddieBot why do I have the role: <role-name>?

If it’s a mention, the user would have to use specific keywords like “why” and “role”

Let me know your thoughts on this 😀

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:14 (10 by maintainers)

github_iconTop GitHub Comments

3reactions
stemountcommented, Jul 19, 2020

As a suggestion @BOLT04 @eddiejaoude how about extending the ^bio thing for this? So you can check out your bio but also on the end it says

Roles:

Steve is a …blah blah blah…

Steve has these roles: “Questionable Value”: “Started to miss the live streams especially the devops ones” - added Jun 19 2020

1reaction
BOLT04commented, Jun 22, 2020

yes there might be since both are about role assignment. But maybe this issue could just be to change messageReactionAdd to store a reason on the DB. In this case, what is important is to store the message’s id (or some identifier) that got the 5+ reactions, so the bot can link back to it when the user asks.

But maybe we could create a PR that adds “Feature: Roles list and assignment command” and fix them together. What do you think?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Assign Azure roles using the Azure portal - Microsoft Learn
Step 1: Identify the needed scope · Step 2: Open the Add role assignment page · Step 3: Select the appropriate role ·...
Read more >
azure-docs/role-assignments-portal.md at main - GitHub
Step 5: (Optional) Add condition (preview)​​ A condition is an additional check that you can optionally add to your role assignment to provide...
Read more >
Assign specific admin roles - Google Workspace Admin Help
Assign a pre-built system role for performing common tasks. Review the Pre-built administrator roles. Create and assign a custom role that has different...
Read more >
DirXMLScript DTD: do-add-role element
The role assignment type from one of USER_TO_ROLE, GROUP_TO_ROLE, CONTAINER_TO_ROLE or ROLE_TO_ROLE. A description of the reason for the request used for ...
Read more >
Users - Adjust roles/subscriptions | Gull Wing Group
After filling in the form, clicking "Save feature" will add the feature to your product. You should see the summary of the role...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found