Skip to content

Commit

Permalink
add versionadded to docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
krittick committed Apr 17, 2022
1 parent 1f4ec44 commit 6c113fd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions discord/embeds.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ class _EmbedAuthorProxy(Protocol):
class EmbedField:
"""Represents a field on the :class:`Embed` object.
.. versionadded:: 2.0
Attributes
----------
name: :class:`str`
Expand Down Expand Up @@ -693,6 +695,8 @@ def fields(self, value: List[EmbedField]) -> None:
def append_field(self, field: EmbedField) -> None:
"""Appends an :class:`EmbedField` object to the embed.
.. versionadded:: 2.0
Parameters
----------
field: :class:`EmbedField`
Expand Down

0 comments on commit 6c113fd

Please sign in to comment.