aboutsummaryrefslogtreecommitdiff
path: root/discord/state.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2016-06-01 05:13:15 -0400
committerRapptz <[email protected]>2016-06-01 05:13:15 -0400
commite0a91df32beabafa990ce09dee13af665c770079 (patch)
treed89b01aee4542786949317e731c62afb91b1e9d7 /discord/state.py
parent[commands] Delete frame objects when done using them. (diff)
downloaddiscord.py-e0a91df32beabafa990ce09dee13af665c770079.tar.xz
discord.py-e0a91df32beabafa990ce09dee13af665c770079.zip
Add RESUME support.
Diffstat (limited to 'discord/state.py')
-rw-r--r--discord/state.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/discord/state.py b/discord/state.py
index 7c1ba993..634a2749 100644
--- a/discord/state.py
+++ b/discord/state.py
@@ -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)