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

@@ -164,8 +164,7 @@ class ChatAction(EventBuilder):
def _set_client(self, client):
super()._set_client(client)
if self.action_message:
self.action_message = custom.Message(
client, self.action_message, self._entities, None)
self.action_message._finish_init(client, self._entities, None)
async def respond(self, *args, **kwargs):
"""