Skip to content

Commit 667e7c9

Browse files
authored
Fixed to_dict() bug for user-defined embed classes
1 parent 4a8817a commit 667e7c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

discord/embeds.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,7 @@ def to_dict(self) -> EmbedData:
743743
# fmt: off
744744
result = {
745745
key[1:]: getattr(self, key)
746-
for key in self.__slots__
746+
for key in Embed.__slots__
747747
if key[0] == '_' and hasattr(self, key)
748748
}
749749
# fmt: on

0 commit comments

Comments
 (0)