aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--discord/embeds.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/discord/embeds.py b/discord/embeds.py
index 663e9ea0..b756d55f 100644
--- a/discord/embeds.py
+++ b/discord/embeds.py
@@ -169,6 +169,10 @@ class Embed:
return self
+ def copy(self):
+ """Returns a shallow copy of the embed."""
+ return Embed.from_dict(self.to_dict())
+
def __len__(self):
total = len(self.title) + len(self.description)
for field in getattr(self, '_fields', []):