Allow clearing the author information in embeds.

This commit is contained in:
jack1142 2020-05-06 11:09:19 +02:00 committed by Rapptz
parent 66c6be50d8
commit a601cf43ab

View File

@ -395,6 +395,21 @@ class Embed:
return self
def remove_author(self):
"""Clears embed's author information.
This function returns the class instance to allow for fluent-style
chaining.
.. versionadded:: 1.4
"""
try:
del self._author
except AttributeError:
pass
return self
@property
def fields(self):
"""Returns a :class:`list` of ``EmbedProxy`` denoting the field contents.