There was an error while loading. Please reload this page.
1 parent 3f37143 commit 4899b9dCopy full SHA for 4899b9d
1 file changed
redbot/cogs/audio/core/utilities/miscellaneous.py
@@ -81,13 +81,13 @@ async def send_embed_msg(
81
embed = {}
82
colour = embed.get("color") if embed.get("color") else colour
83
contents.update(embed)
84
+ embed = discord.Embed.from_dict(contents)
85
+ embed.color = colour
86
if timestamp and isinstance(timestamp, datetime.datetime):
87
timestamp = timestamp.replace(tzinfo=datetime.timezone.utc)
- contents["timestamp"] = timestamp
88
+ embed.timestamp = timestamp
89
else:
- contents["timestamp"] = datetime.datetime.now(tz=datetime.timezone.utc)
- embed = discord.Embed.from_dict(contents)
90
- embed.color = colour
+ embed.timestamp = datetime.datetime.now(tz=datetime.timezone.utc)
91
if footer:
92
embed.set_footer(text=footer)
93
if thumbnail:
0 commit comments