mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-07 17:39:03 +00:00
Fixed to_dict() bug for user-defined embed classes
This commit is contained in:
1 parent
4a8817af2b
commit
667e7c9065
1 file changed
+1
-1
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user