Browse Source

Fixed to_dict() bug for user-defined embed classes

pull/10215/head
Roberto Scifo 2 weeks ago
committed by GitHub
parent
commit
667e7c9065
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      discord/embeds.py

2
discord/embeds.py

@ -743,7 +743,7 @@ class Embed:
# fmt: off
result = {
key[1:]: getattr(self, key)
for key in self.__slots__
for key in Embed.__slots__
if key[0] == '_' and hasattr(self, key)
}
# fmt: on

Loading…
Cancel
Save