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 request: method to promote a group member to a specified role. #1004

Open
Ordynsky-DeusCraft opened this issue Mar 23, 2023 · 0 comments

Comments

@Ordynsky-DeusCraft
Copy link

Hi everybody!

The case:
In my code I need to promote a user to a super admin role before another user leaves a group. I know about the nk.GroupUsersPromote method, and I have a userID of a user to promote. But I haven’t his current role or his role after the nk.GroupUsersPromote operation. So, to complete this simple operation, I need to get user’s current role, then I need to complete nk.GroupUsersPromote * prevUserRole times. Or I need to promote user and after each success operation I need to get his state to check if he has the needed state.

The solution:
It would be great to have some method like nk.GroupUserSetState(userID, state int) to promote needed user (or users) to a concrete role.

Thanks!

# 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

1 participant