aboutsummaryrefslogtreecommitdiff
path: root/discord/embeds.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2017-06-16 22:17:24 -0400
committerRapptz <[email protected]>2017-06-16 22:17:24 -0400
commit15edfc2b26ca2d01db23e22f6662a4a2254193f7 (patch)
treeaa5b434af658cc856130da0610ef6caa3300cb2e /discord/embeds.py
parent[commands] Fix cog error detection in the default global error handler. (diff)
downloaddiscord.py-15edfc2b26ca2d01db23e22f6662a4a2254193f7.tar.xz
discord.py-15edfc2b26ca2d01db23e22f6662a4a2254193f7.zip
Make checking for truth-ness of EmbedProxy easier.
Diffstat (limited to 'discord/embeds.py')
-rw-r--r--discord/embeds.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/discord/embeds.py b/discord/embeds.py
index 30620498..bc937b50 100644
--- a/discord/embeds.py
+++ b/discord/embeds.py
@@ -42,6 +42,9 @@ class EmbedProxy:
def __init__(self, layer):
self.__dict__.update(layer)
+ def __len__(self):
+ return len(self.__dict__)
+
def __repr__(self):
return 'EmbedProxy(%s)' % ', '.join(('%s=%r' % (k, v) for k, v in self.__dict__.items() if not k.startswith('_')))