From a2bb86d6b1f73e268144ae9edbd6210340b209f1 Mon Sep 17 00:00:00 2001 From: Gareth Coles Date: Mon, 5 Feb 2018 00:00:35 +0000 Subject: Function doesn't need to be async --- bot/cogs/security.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/cogs/security.py b/bot/cogs/security.py index c7fa4a686..91029f2cd 100644 --- a/bot/cogs/security.py +++ b/bot/cogs/security.py @@ -13,7 +13,7 @@ class Security: self.bot = bot self.bot.check(self.check_not_bot) - async def check_not_bot(self, ctx: Context): + def check_not_bot(self, ctx: Context): return not ctx.author.bot -- cgit v1.2.3