Skip to content

Commit

Permalink
fix checks to use top_role.permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
probablyjassin committed Nov 30, 2024
1 parent 63b57d9 commit 574ee5a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions utils/command_helpers/checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ async def predicate(ctx: MogiApplicationContext):
return await check(
ctx=ctx,
condition=(
ctx.author.guild_permissions.is_superset(
ctx.author.top_role.permissions.is_superset(
ctx.get_lounge_role("Mogi Manager").permissions
)
),
Expand All @@ -37,7 +37,7 @@ async def predicate(ctx: MogiApplicationContext):
return await check(
ctx=ctx,
condition=(
ctx.author.guild_permissions.is_superset(
ctx.author.top_role.permissions.is_superset(
ctx.get_lounge_role("Moderator").permissions
)
),
Expand All @@ -52,7 +52,7 @@ async def predicate(ctx: MogiApplicationContext):
return await check(
ctx=ctx,
condition=(
ctx.author.guild_permissions.is_superset(
ctx.author.top_role.permissions.is_superset(
ctx.get_lounge_role("Admin").permissions
)
),
Expand Down

0 comments on commit 574ee5a

Please sign in to comment.