I am working with the wix-users module and the roles, and I think there's a bug when trying to get the role(s) of a user.
When I use user.getRoles(), I get an empty list; whereas the user.role current value is "Member" (as expected).
Then, since the documentation (https://www.wix.com/code/reference/wix-users.User.html#role) states that user.role is deprecated in favor of user.getRoles(), I think that the list returned by getRoles() should have the "Member" role included in it (same as user.role), because at this moment the only way to get that role is by the use of user.role, which is deprecated!
I would appreciate if someone can confirm whether this is a generalized behavior, or explain why this could be the expected result.
Tested on the published site.