mirror of
				https://github.com/Rapptz/discord.py.git
				synced 2025-10-25 18:43:00 +00:00 
			
		
		
		
	Make checking for truth-ness of EmbedProxy easier.
This commit is contained in:
		| @@ -42,6 +42,9 @@ class EmbedProxy: | |||||||
|     def __init__(self, layer): |     def __init__(self, layer): | ||||||
|         self.__dict__.update(layer) |         self.__dict__.update(layer) | ||||||
|  |  | ||||||
|  |     def __len__(self): | ||||||
|  |         return len(self.__dict__) | ||||||
|  |  | ||||||
|     def __repr__(self): |     def __repr__(self): | ||||||
|         return 'EmbedProxy(%s)' % ', '.join(('%s=%r' % (k, v) for k, v in self.__dict__.items() if not k.startswith('_'))) |         return 'EmbedProxy(%s)' % ', '.join(('%s=%r' % (k, v) for k, v in self.__dict__.items() if not k.startswith('_'))) | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user