Browse Source

add `Embed.remove_thumbnail` method

pull/10139/head
owocado 3 weeks ago
committed by GitHub
parent
commit
906b472de0
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 15
      discord/embeds.py

15
discord/embeds.py

@ -494,6 +494,21 @@ class Embed:
return self
def remove_thumbnail(self) -> Self:
"""Clears embed's thumbnail information.
This function returns the class instance to allow for fluent-style
chaining.
.. versionadded:: 2.6
"""
try:
del self._thumbnail
except AttributeError:
pass
return self
@property
def video(self) -> _EmbedMediaProxy:
"""Returns an ``EmbedProxy`` denoting the video contents.

Loading…
Cancel
Save