sentanos / roblox-js

!!!THIS PROJECT IS NO LONGER MAINTAINED!!! Execute ROBLOX website actions in node.js
MIT License
45 stars 45 forks source link

How do I fix this error when using setRank(...)? #45

Closed bootsie123 closed 7 years ago

bootsie123 commented 7 years ago

Hi. I'm using the roblox-js-server api and when I use the setRank method like so api.setRank(player.UserId, GroupID, 12) is says that the role aka the last thing in the argument does not exist. In the docs it says to use it like api.SetRank(GroupID, UserId, RoleID) however, when I do it that way I get

"Set rank failed: Target user 3272666 is not in group 327266"

For some reason, the user id that I put is being ignored and it's just using the group id as the user id. Anyone know how to fix this?

bootsie123 commented 7 years ago

Meant to post this on roblox-js-server.