Right now in discord.js, you can get all the users who have the role like this:
const guild = client.guilds.get('GUILD_ID')
Role = guild.roles.find(r => r.name === 'Big Yeeter').members.map(m=>m.user.tag);
But that gives all the users who have the role, not the users who have it for their highest role. For example, if their ranks would look like this:
HUGE yeeter
Big Yeeter
Small Yeeter
...they would still be logged.
But I just want to get the users who have it as their HIGHEST role, so only users like this:
Big Yeeter
Small Yeeter
Hopefully that makes sense. So how could I do something like that?
highestRole
property – T. Dirks