diff options
| author | Rapptz <[email protected]> | 2016-07-13 20:11:18 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2016-07-13 20:11:18 -0400 |
| commit | a128249b6324dd045561cb0be85cdabf8acd7694 (patch) | |
| tree | bcca950498a3aed2d8bd67fa31b115f8a70833ad /discord/state.py | |
| parent | Handle CHANNEL_UPDATE for group direct messages. (diff) | |
| download | discord.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.py | 5 |
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: |