From dd727fb6f4c35154f6ac970c76be529f208c6bfc Mon Sep 17 00:00:00 2001 From: Arnav Jindal Date: Mon, 7 Jun 2021 13:03:11 +0530 Subject: [PATCH] Add Embed.remove_footer --- discord/embeds.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/discord/embeds.py b/discord/embeds.py index 6e1c1cee8..47f4b07a6 100644 --- a/discord/embeds.py +++ b/discord/embeds.py @@ -364,7 +364,22 @@ class Embed: self._footer['icon_url'] = str(icon_url) return self + + def remove_footer(self: E) -> E: + """Clears embed's footer information. + This function returns the class instance to allow for fluent-style + chaining. + + .. versionadded:: 2.0 + """ + try: + del self._footer + except AttributeError: + pass + + return self + @property def image(self) -> _EmbedMediaProxy: """Returns an ``EmbedProxy`` denoting the image contents.