Allow clearing the author information in embeds.

This commit is contained in:
jack1142 authored and Rapptz committed 2020-05-23 21:47:25 -04:00
1 parent 66c6be50d8
commit a601cf43ab
1 file changed
+15
+15
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.