Add missing fields to Embed.from_data()
This commit is contained in:
parent
e7c5ef181f
commit
9224d9b9d3
@ -132,7 +132,7 @@ class Embed:
|
|||||||
except KeyError:
|
except KeyError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
for attr in ('thumbnail', 'video', 'provider', 'author', 'fields'):
|
for attr in ('thumbnail', 'video', 'provider', 'author', 'fields', 'image', 'footer'):
|
||||||
try:
|
try:
|
||||||
value = data[attr]
|
value = data[attr]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user