From 0c097cf3b175cf75f4360b1faf19154def4ed779 Mon Sep 17 00:00:00 2001 From: Krittick Date: Tue, 12 Apr 2022 01:10:30 -0700 Subject: [PATCH] fix for embeds with no initial fields --- discord/embeds.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/embeds.py b/discord/embeds.py index 477f827ac5..d03dcda41c 100644 --- a/discord/embeds.py +++ b/discord/embeds.py @@ -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