mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-10-21 16:03:10 +00:00
Allow clearing the author information in embeds.
This commit is contained in:
@@ -395,6 +395,21 @@ class Embed:
|
|||||||
|
|
||||||
return self
|
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
|
@property
|
||||||
def fields(self):
|
def fields(self):
|
||||||
"""Returns a :class:`list` of ``EmbedProxy`` denoting the field contents.
|
"""Returns a :class:`list` of ``EmbedProxy`` denoting the field contents.
|
||||||
|
Reference in New Issue
Block a user