Skip to content

Commit

Permalink
add docstring for EmbedField.to_dict
Browse files Browse the repository at this point in the history
  • Loading branch information
krittick committed Apr 9, 2022
1 parent dacdfe0 commit fb9a701
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions discord/embeds.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ def from_dict(cls: Type[E], data: Mapping[str, Any]) -> E:
return self

def to_dict(self) -> Dict[str, Union[str, bool]]:
"""Converts this EmbedField object into a dict."""
return {
"name": self.name,
"value": self.value,
Expand Down

0 comments on commit fb9a701

Please sign in to comment.