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