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 09a75eb78e - Show all commits

View File

@ -455,9 +455,6 @@ class Embed:
@thumbnail.setter
def thumbnail(self: E, url: Any):
"""Sets the thumbnail for the embed content.
"""
if url is EmptyEmbed:
del self._thumbnail
else:
@ -465,8 +462,6 @@ class Embed:
'url': str(url),
}
return
@thumbnail.deleter
def thumbnail(self):
try: