async function isHigherPosition(
  guildOrId,
  memberId,
  compareRoleId,
) {
  const guild = await getCached("guilds", guildOrId);
  if (!guild || guild.ownerId === memberId) return true;
  const memberHighestRole = await highestRole(guild, memberId);
  return higherRolePosition(guild.id, memberHighestRole.id, compareRoleId);
}
/** Checks if the member has a higher position than the given role */
Checks if the member has a higher position than the given role
Checks if the member has a higher position than the given role
async function isHigherPosition(
  guildOrId,
  memberId,
  compareRoleId,
) {
  const guild = await getCached("guilds", guildOrId);
  if (!guild || guild.ownerId === memberId) return true;
  const memberHighestRole = await highestRole(guild, memberId);
  return higherRolePosition(guild.id, memberHighestRole.id, compareRoleId);
}
async function isHigherPosition ( guildOrId , memberId , compareRoleId , ) { const guild = await getCached ( "guilds" , guildOrId ) ; if ( ! guild || guild . ownerId === memberId ) return true ; const memberHighestRole = await highestRole ( guild , memberId ) ; return higherRolePosition ( guild . id , memberHighestRole . id , compareRoleId ) ; }
Checks if the member has a higher position than the given role
Checks if the member has a higher position than the given role