diff options
| author | Rapptz <[email protected]> | 2019-03-13 05:59:42 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2019-03-13 06:02:56 -0400 |
| commit | 73aca4d4d36e728e906fb6c6bccaaf7060c1b83d (patch) | |
| tree | 6dc5feee749a1b92d97b06ef6c9bb6ced26618a1 /discord/state.py | |
| parent | Handle type updates in TextChannel._update for news channels. (diff) | |
| download | discord.py-73aca4d4d36e728e906fb6c6bccaaf7060c1b83d.tar.xz discord.py-73aca4d4d36e728e906fb6c6bccaaf7060c1b83d.zip | |
Expose Embed.from_data as Embed.from_dict
This is a breaking change.
Diffstat (limited to 'discord/state.py')
| -rw-r--r-- | discord/state.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/state.py b/discord/state.py index b49f3141..0d2bd6f3 100644 --- a/discord/state.py +++ b/discord/state.py @@ -391,7 +391,7 @@ class ConnectionState: message._handle_call(data['call']) elif 'content' not in data: # embed only edit - message.embeds = [Embed.from_data(d) for d in data['embeds']] + message.embeds = [Embed.from_dict(d) for d in data['embeds']] else: message._update(channel=message.channel, data=data) |