Replace custom.Message creation with ._finish_init

This commit is contained in:
Lonami Exo
2018-07-22 19:20:55 +02:00
parent 61a9f1e61c
commit 1c0d595205
5 changed files with 20 additions and 13 deletions

View File

@@ -204,8 +204,7 @@ class NewMessage(EventBuilder):
def _set_client(self, client):
super()._set_client(client)
self.message = custom.Message(
client, self.message, self._entities, None)
self.message._finish_init(client, self._entities, None)
self.__dict__['_init'] = True # No new attributes can be set
def __getattr__(self, item):