From a128249b6324dd045561cb0be85cdabf8acd7694 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Wed, 13 Jul 2016 20:11:18 -0400 Subject: Add support for different message types and call message. --- discord/state.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'discord/state.py') diff --git a/discord/state.py b/discord/state.py index be4df954..cd65ba46 100644 --- a/discord/state.py +++ b/discord/state.py @@ -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: -- cgit v1.2.3