mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-07-04 01:00:00 +00:00
Add Embed.remove_footer
This commit is contained in:
parent
ab6d592f8c
commit
dd727fb6f4
@ -365,6 +365,21 @@ class Embed:
|
|||||||
|
|
||||||
return self
|
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
|
@property
|
||||||
def image(self) -> _EmbedMediaProxy:
|
def image(self) -> _EmbedMediaProxy:
|
||||||
"""Returns an ``EmbedProxy`` denoting the image contents.
|
"""Returns an ``EmbedProxy`` denoting the image contents.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user