I understand how to use let and get to receive information about a user’s certain role. But how can I set a Member’s Role using Wix Code or even setting a Member’s Role as something if they click a certain button? Any help? Is this possible at the moment or is it still not supported?
After a lot of searching I found Wix added a new API to assign roles programmatically
https://www.wix.com/velo/reference/wix-users-backend/roles-obj/assignrole