Simplify event resolving logic

Although this commit introduces a race condition since an
event may only be half-resolved. A lock is thus needed,
but it depends on an event-loop to which we don't have
access in the class-level.
This commit is contained in:
Lonami Exo
2018-08-21 11:08:08 +02:00
parent 9f237cc928
commit d474458136
6 changed files with 26 additions and 31 deletions

View File

@@ -27,7 +27,7 @@ class Raw(EventBuilder):
self.types = tuple(types)
async def resolve(self, client):
pass
self.resolved = True
@classmethod
def build(cls, update):