Fixed the thingy again again

This commit is contained in:
Nexus 2023-05-18 09:45:48 +01:00
parent dd0b81be05
commit cab865219d
Signed by: nex
GPG key ID: 0FA334385D0B689F

View file

@ -534,7 +534,7 @@ class Events(commands.Cog):
continue continue
else: else:
for k, v in data.copy().items(): 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() await v()
elif callable(v): elif callable(v):
data[k] = v() data[k] = v()