Add RESUME support.

This commit is contained in:
Rapptz
2016-06-01 05:13:15 -04:00
parent 20e86973ea
commit e0a91df32b
4 changed files with 54 additions and 12 deletions

View File

@ -199,6 +199,9 @@ class ConnectionState:
compat.create_task(self._delay_ready(), loop=self.loop)
def parse_resumed(self, data):
self.dispatch('resumed')
def parse_message_create(self, data):
channel = self.get_channel(data.get('channel_id'))
message = Message(channel=channel, **data)