aboutsummaryrefslogtreecommitdiff
path: root/discord/state.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2016-07-13 20:11:18 -0400
committerRapptz <[email protected]>2016-07-13 20:11:18 -0400
commita128249b6324dd045561cb0be85cdabf8acd7694 (patch)
treebcca950498a3aed2d8bd67fa31b115f8a70833ad /discord/state.py
parentHandle CHANNEL_UPDATE for group direct messages. (diff)
downloaddiscord.py-a128249b6324dd045561cb0be85cdabf8acd7694.tar.xz
discord.py-a128249b6324dd045561cb0be85cdabf8acd7694.zip
Add support for different message types and call message.
Diffstat (limited to 'discord/state.py')
-rw-r--r--discord/state.py5
1 files changed, 4 insertions, 1 deletions
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: