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
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()