Fix TypeError when setting Embed.thumbnail and Embed.image property #41

Merged
null2264 merged 3 commits from 2.0 into 2.0 2021-09-02 19:46:56 +00:00
Showing only changes of commit 2367d9d7e2 - Show all commits

View File

@@ -404,7 +404,7 @@ class Embed:
return EmbedProxy(getattr(self, '_image', {})) # type: ignore
@image.setter
def image(self: E, *, url: Any):
def image(self: E, url: Any):
self._image = {
'url': str(url),
}
@@ -454,7 +454,7 @@ class Embed:
return EmbedProxy(getattr(self, '_thumbnail', {})) # type: ignore
@thumbnail.setter
def thumbnail(self: E, *, url: Any):
def thumbnail(self: E, url: Any):
"""Sets the thumbnail for the embed content.
"""