mirror of
				https://github.com/Rapptz/discord.py.git
				synced 2025-10-25 10:32:59 +00:00 
			
		
		
		
	Add Embed.copy to do a copy on an embed object.
This commit is contained in:
		| @@ -169,6 +169,10 @@ class Embed: | |||||||
|  |  | ||||||
|         return self |         return self | ||||||
|  |  | ||||||
|  |     def copy(self): | ||||||
|  |         """Returns a shallow copy of the embed.""" | ||||||
|  |         return Embed.from_dict(self.to_dict()) | ||||||
|  |  | ||||||
|     def __len__(self): |     def __len__(self): | ||||||
|         total = len(self.title) + len(self.description) |         total = len(self.title) + len(self.description) | ||||||
|         for field in getattr(self, '_fields', []): |         for field in getattr(self, '_fields', []): | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user