Format Python code with psf/black push

github-actions 1 year ago
parent 471d634e18
commit b4fd66a296

@ -106,9 +106,7 @@ class Check:
async def inner(ctx: discord.ApplicationContext):
if SEARCH_ROLES == [None]:
return True
if not any(
role.name.lower() in SEARCH_ROLES for role in ctx.user.roles
):
if not any(role.name.lower() in SEARCH_ROLES for role in ctx.user.roles):
await ctx.defer(ephemeral=True)
await ctx.respond(
f"You don't have permission, list of roles is {SEARCH_ROLES}",
@ -118,4 +116,4 @@ class Check:
return False
return True
return inner
return inner

Loading…
Cancel
Save