| @@ -398,16 +398,14 @@ 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, url: Any): | ||||||
|         if url is EmptyEmbed: |         if url is EmptyEmbed: | ||||||
|             del self._image |             del self.image | ||||||
|         else: |         else: | ||||||
|             self._image = { |             self._image = {"url": str(url)} | ||||||
|                 "url": str(url), |  | ||||||
|             } |  | ||||||
|  |  | ||||||
|     @image.deleter |     @image.deleter | ||||||
|     def image(self: E): |     def image(self): | ||||||
|         try: |         try: | ||||||
|             del self._image |             del self._image | ||||||
|         except AttributeError: |         except AttributeError: | ||||||
| @@ -429,7 +427,6 @@ class Embed: | |||||||
|         """ |         """ | ||||||
|  |  | ||||||
|         self.image = url |         self.image = url | ||||||
|  |  | ||||||
|         return self |         return self | ||||||
|  |  | ||||||
|     @property |     @property | ||||||
| @@ -448,13 +445,11 @@ 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, url: Any): | ||||||
|         if url is EmptyEmbed: |         if url is EmptyEmbed: | ||||||
|             del self._thumbnail |             del self.thumbnail | ||||||
|         else: |         else: | ||||||
|             self._thumbnail = { |             self._thumbnail = {"url": str(url)} | ||||||
|                 "url": str(url), |  | ||||||
|             } |  | ||||||
|  |  | ||||||
|     @thumbnail.deleter |     @thumbnail.deleter | ||||||
|     def thumbnail(self): |     def thumbnail(self): | ||||||
| @@ -463,7 +458,7 @@ class Embed: | |||||||
|         except AttributeError: |         except AttributeError: | ||||||
|             pass |             pass | ||||||
|  |  | ||||||
|     def set_thumbnail(self: E, *, url: MaybeEmpty[Any]): |     def set_thumbnail(self, *, url: MaybeEmpty[Any]): | ||||||
|         """Sets the thumbnail for the embed content. |         """Sets the thumbnail for the embed content. | ||||||
|  |  | ||||||
|         This function returns the class instance to allow for fluent-style |         This function returns the class instance to allow for fluent-style | ||||||
| @@ -479,7 +474,6 @@ class Embed: | |||||||
|         """ |         """ | ||||||
|  |  | ||||||
|         self.thumbnail = url |         self.thumbnail = url | ||||||
|  |  | ||||||
|         return self |         return self | ||||||
|  |  | ||||||
|     @property |     @property | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user