Skip to content

Commit

Permalink
fix for embeds with no initial fields
Browse files Browse the repository at this point in the history
  • Loading branch information
krittick committed Apr 12, 2022
1 parent fb9a701 commit 0c097cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion discord/embeds.py
Original file line number Diff line number Diff line change
Expand Up @@ -823,7 +823,7 @@ def to_dict(self) -> EmbedData:
}

# add in the fields
result["fields"] = [field.to_dict() for field in self._fields]
result["fields"] = [field.to_dict() for field in self._fields if self._fields]

# deal with basic convenience wrappers

Expand Down

0 comments on commit 0c097cf

Please sign in to comment.