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 to check if a member is in a group #79

Open Anonymous0perator opened 6 years ago

Anonymous0perator commented 6 years ago

So what do I need to do to check if a member is in group

Neztore commented 6 years ago

Please see the wiki, or click here. Navigate to "Group" and then look for the function you need. Do not ask us questions like this. @sentanos close please

Also, for Discord.js support (I assume you're using Discord.js) Join this discord and ask them instead.

sentanos commented 6 years ago

This will return true if they are in the group and false if they are not:

await rbx.getRankInGroup(groupId, userId) !== 0

Or I believe this will work because Roblox doesn’t allow duplicate role names:

await rbx.getRankNameInGroup(groupId, userId) !== 'Guest'