Add support for different message types and call message.

This commit is contained in:
Rapptz committed 2016-07-13 20:11:18 -04:00
1 parent 69c506d7ae
commit a128249b63
7 files changed
+175 -8

No files matched your search

+4 -1
View File
@@ -238,7 +238,10 @@ class ConnectionState:
message = self._get_message(data.get('id'))
if message is not None:
older_message = copy.copy(message)
if 'content' not in data:
if 'call' in data:
# call state message edit
message._handle_call(data['call'])
elif 'content' not in data:
# embed only edit
message.embeds = data['embeds']
else: