From 906b472de07b4c1a3cebad92282fb2ed5a5d851c Mon Sep 17 00:00:00 2001 From: owocado <24418520+owocado@users.noreply.github.com> Date: Fri, 14 Mar 2025 17:33:46 +0530 Subject: [PATCH] add `Embed.remove_thumbnail` method --- discord/embeds.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/discord/embeds.py b/discord/embeds.py index 7f84e410d..a2b0b5637 100644 --- a/discord/embeds.py +++ b/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.