From b56b3fcd0c25af2987475193eadda7ad36a4bf6b Mon Sep 17 00:00:00 2001 From: nex Date: Thu, 18 May 2023 09:28:54 +0100 Subject: [PATCH] Fix fuck you lol --- .idea/dataSources.local.xml | 2 +- cogs/events.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.idea/dataSources.local.xml b/.idea/dataSources.local.xml index b44f725..357d466 100644 --- a/.idea/dataSources.local.xml +++ b/.idea/dataSources.local.xml @@ -1,6 +1,6 @@ - + " diff --git a/cogs/events.py b/cogs/events.py index 8dba6e2..6e16796 100644 --- a/cogs/events.py +++ b/cogs/events.py @@ -523,7 +523,7 @@ class Events(commands.Cog): if "func" in data: try: - if inspect.iscoroutinefunction(data["func"]): + if inspect.iscoroutinefunction(data["func"]) or inspect.iscoroutine(data["func"]): await data["func"]() break else: