You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered:
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!
The text was updated successfully, but these errors were encountered: