Add support for different message types and call message.

This commit is contained in:
Rapptz
2016-07-13 20:11:18 -04:00
parent 69c506d7ae
commit a128249b63
7 changed files with 175 additions and 8 deletions

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: