mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-08 10:53:10 +00:00
Expose Embed.from_data as Embed.from_dict
This is a breaking change.
This commit is contained in:
@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user