Fixed the thingy again again again!

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

View file

@ -535,7 +535,7 @@ class Events(commands.Cog):
else:
for k, v in data.copy().items():
if inspect.iscoroutinefunction(data[k]) or inspect.iscoroutine(data[k]):
await v()
data[k] = await v()
elif callable(v):
data[k] = v()
data.setdefault("delete_after", 30)