From 1cf766820de1691a6db95ba44d6b6b38596a1683 Mon Sep 17 00:00:00 2001 From: phxntxm Date: Sun, 23 Sep 2018 17:38:34 -0500 Subject: [PATCH] Correct syntax error in check --- cogs/utils/checks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cogs/utils/checks.py b/cogs/utils/checks.py index 65d7012..9d0563d 100644 --- a/cogs/utils/checks.py +++ b/cogs/utils/checks.py @@ -181,8 +181,8 @@ def has_perms(ctx, **perms): return guild_perms >= required_perm or channel_perms >= required_perm -async def can_run(**kwargs): - def predicate(ctx): +def can_run(**kwargs): + async def predicate(ctx): # First check if the command requires ownership of the bot if kwargs.pop("ownership", False) and not is_owner(ctx): return False