From b4fd66a2965f4410d14c761a1f933aa1ed6affaf Mon Sep 17 00:00:00 2001 From: github-actions <${GITHUB_ACTOR}@users.noreply.github.com> Date: Mon, 27 Feb 2023 10:00:35 +0000 Subject: [PATCH] Format Python code with psf/black push --- models/check_model.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/models/check_model.py b/models/check_model.py index 2b20b9f..85f7e44 100644 --- a/models/check_model.py +++ b/models/check_model.py @@ -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 \ No newline at end of file + return inner