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/message.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'discord/message.py') diff --git a/discord/message.py b/discord/message.py index eadd69fa..71ee8f9a 100644 --- a/discord/message.py +++ b/discord/message.py @@ -281,7 +281,7 @@ class Message: self._try_patch(data, 'type', lambda x: try_enum(MessageType, x)) self._try_patch(data, 'content') self._try_patch(data, 'attachments', lambda x: [Attachment(data=a, state=self._state) for a in x]) - self._try_patch(data, 'embeds', lambda x: list(map(Embed.from_data, x))) + self._try_patch(data, 'embeds', lambda x: list(map(Embed.from_dict, x))) self._try_patch(data, 'nonce') for handler in ('author', 'member', 'mentions', 'mention_roles', 'call'): -- cgit v1.2.3