aboutsummaryrefslogtreecommitdiff
path: root/discord/message.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2019-03-13 05:59:42 -0400
committerRapptz <[email protected]>2019-03-13 06:02:56 -0400
commit73aca4d4d36e728e906fb6c6bccaaf7060c1b83d (patch)
tree6dc5feee749a1b92d97b06ef6c9bb6ced26618a1 /discord/message.py
parentHandle type updates in TextChannel._update for news channels. (diff)
downloaddiscord.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/message.py')
-rw-r--r--discord/message.py2
1 files changed, 1 insertions, 1 deletions
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'):