From cab865219df15b2702241ba509d98ad041de7a81 Mon Sep 17 00:00:00 2001 From: nex Date: Thu, 18 May 2023 09:45:48 +0100 Subject: [PATCH] Fixed the thingy again again --- cogs/events.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/events.py b/cogs/events.py index c2bffd2..0734df3 100644 --- a/cogs/events.py +++ b/cogs/events.py @@ -534,7 +534,7 @@ class Events(commands.Cog): continue else: for k, v in data.copy().items(): - if inspect.iscoroutinefunction(data["func"]) or inspect.iscoroutine(data["func"]): + if inspect.iscoroutinefunction(data[k]) or inspect.iscoroutine(data[k]): await v() elif callable(v): data[k] = v()