From 73aca4d4d36e728e906fb6c6bccaaf7060c1b83d Mon Sep 17 00:00:00 2001 From: Rapptz Date: Wed, 13 Mar 2019 05:59:42 -0400 Subject: Expose Embed.from_data as Embed.from_dict This is a breaking change. --- discord/state.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'discord/state.py') 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) -- cgit v1.2.3