Browse Source
Fixed to_dict() bug for user-defined embed classes
pull/10215/head
Roberto Scifo
2 weeks ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
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 |
|
|
|