feat(Aurora): added a respect_hierarchy configuration option and relevant configuration button to [p]aurora set guild
, along with functionality that uses this configuration value
This commit is contained in:
parent
a4f2d21fa1
commit
9f7244cd65
5 changed files with 21 additions and 15 deletions
|
@ -77,7 +77,7 @@ async def check_moddable(
|
|||
return False
|
||||
|
||||
if isinstance(target, Member):
|
||||
if interaction.user.top_role <= target.top_role:
|
||||
if interaction.user.top_role <= target.top_role and await config.guild(interaction.guild).respect_hierarchy() is True:
|
||||
await interaction.response.send_message(
|
||||
content=error(
|
||||
"You cannot moderate members with a higher role than you!"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue