mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-10-21 16:03:10 +00:00
Fixed to_dict() bug for user-defined embed classes
This commit is contained in:
@@ -743,7 +743,7 @@ class Embed:
|
|||||||
# fmt: off
|
# fmt: off
|
||||||
result = {
|
result = {
|
||||||
key[1:]: getattr(self, key)
|
key[1:]: getattr(self, key)
|
||||||
for key in self.__slots__
|
for key in Embed.__slots__
|
||||||
if key[0] == '_' and hasattr(self, key)
|
if key[0] == '_' and hasattr(self, key)
|
||||||
}
|
}
|
||||||
# fmt: on
|
# fmt: on
|
||||||
|
Reference in New Issue
Block a user