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
All checks were successful
Actions / Build Documentation (MkDocs) (push) Successful in 33s
Actions / Lint Code (Ruff & Pylint) (push) Successful in 43s

This commit is contained in:
SeaswimmerTheFsh 2024-04-05 10:43:58 -04:00
parent a4f2d21fa1
commit 9f7244cd65
Signed by: cswimr
GPG key ID: B8953EC01E5C4063
5 changed files with 21 additions and 15 deletions

View file

@ -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!"