sentanos / roblox-js

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

How do I get rank from a member and name them in discord? #77

Closed Anonymous0perator closed 6 years ago

Anonymous0perator commented 6 years ago

For a example, A is a VIP in the group 4837. So I’m trying to name A like “[VIP] A” like that, I have no idea how to get role and nick that user by rank

sentanos commented 6 years ago

To get their role name you would do something like

const roleName = await rbx.getRankNameInGroup(groupId, await rbx.getIdFromUsername(username));

How to then set their nickname depends on the discord library you are using and is your responsibility to figure out.