Fixed TypeError
This commit is contained in:
parent
6f5614373a
commit
2367d9d7e2
@ -404,7 +404,7 @@ class Embed:
|
|||||||
return EmbedProxy(getattr(self, '_image', {})) # type: ignore
|
return EmbedProxy(getattr(self, '_image', {})) # type: ignore
|
||||||
|
|
||||||
@image.setter
|
@image.setter
|
||||||
def image(self: E, *, url: Any):
|
def image(self: E, url: Any):
|
||||||
self._image = {
|
self._image = {
|
||||||
'url': str(url),
|
'url': str(url),
|
||||||
}
|
}
|
||||||
@ -454,7 +454,7 @@ class Embed:
|
|||||||
return EmbedProxy(getattr(self, '_thumbnail', {})) # type: ignore
|
return EmbedProxy(getattr(self, '_thumbnail', {})) # type: ignore
|
||||||
|
|
||||||
@thumbnail.setter
|
@thumbnail.setter
|
||||||
def thumbnail(self: E, *, url: Any):
|
def thumbnail(self: E, url: Any):
|
||||||
"""Sets the thumbnail for the embed content.
|
"""Sets the thumbnail for the embed content.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user