mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-20 18:06:08 -05:00
Fix role position checks (#4740)
This commit is contained in:
@@ -108,7 +108,7 @@ async def is_allowed_by_hierarchy(
|
||||
if not await settings.guild(guild).respect_hierarchy():
|
||||
return True
|
||||
is_special = mod == guild.owner or await bot.is_owner(mod)
|
||||
return mod.top_role.position > user.top_role.position or is_special
|
||||
return mod.top_role > user.top_role or is_special
|
||||
|
||||
|
||||
async def is_mod_or_superior(
|
||||
|
||||
Reference in New Issue
Block a user