aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArnav Jindal <[email protected]>2021-06-07 13:03:11 +0530
committerGitHub <[email protected]>2021-06-07 03:33:11 -0400
commitdd727fb6f4c35154f6ac970c76be529f208c6bfc (patch)
treeed453651d8efc9c8da7d26e492a9359949a4ad51
parentAdd support for integration create/update/delete events (diff)
downloaddiscord.py-dd727fb6f4c35154f6ac970c76be529f208c6bfc.tar.xz
discord.py-dd727fb6f4c35154f6ac970c76be529f208c6bfc.zip
Add Embed.remove_footer
-rw-r--r--discord/embeds.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/discord/embeds.py b/discord/embeds.py
index 6e1c1cee..47f4b07a 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.