Add Conversation.wait_event

This commit is contained in:
Lonami Exo
2018-08-05 01:55:41 +02:00
parent 1ecb751222
commit ca40a9c282
2 changed files with 68 additions and 0 deletions

View File

@@ -283,6 +283,9 @@ class UpdateMethods(UserMethods):
if built[events.MessageRead]:
conv._on_read(built[events.MessageRead])
if conv._custom:
await conv._check_custom(built, update)
for builder, callback in self._event_builders:
event = built[type(builder)]
if not event or not builder.filter(event):