Fixed to_dict() bug for user-defined embed classes

This commit is contained in:
Roberto Scifo 2025-06-20 20:55:44 +02:00 committed by GitHub
parent 4a8817af2b
commit 667e7c9065
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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