Skip to content
New issue

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

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

Already on GitHub? # to your account

[Feature] Remove existing role when assigning another role in group #1

Open
ramxy opened this issue Nov 10, 2021 · 1 comment
Open

Comments

@ramxy
Copy link

ramxy commented Nov 10, 2021

When the user takes a role with a button, delete the other role, if any

@whirlxd
Copy link
Owner

whirlxd commented Nov 11, 2021

it's as easy as putting the roles in an array and checking if the user has any roles from the array before assigning them the new role
if they do then remove all those roles , if they don't just return.
feel free to make a pr

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants