Fix Conversation.wait_event not resolving them (from d474458)

This commit is contained in:
Lonami Exo 2018-10-05 13:42:07 +02:00
parent dc77136453
commit dedbf29ca4

View File

@ -260,10 +260,7 @@ class Conversation(ChatGetter):
if isinstance(event, type):
event = event()
# Since we await resolve here we don't need to await resolved.
# We know it has already been resolved, unlike when normally
# adding an event handler, for which a task is created to resolve.
await event.resolve()
await event.resolve(self._client)
counter = Conversation._custom_counter
Conversation._custom_counter += 1