Skip to content

Commit 4899b9d

Browse files
committed
.
1 parent 3f37143 commit 4899b9d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

redbot/cogs/audio/core/utilities/miscellaneous.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,13 @@ async def send_embed_msg(
8181
embed = {}
8282
colour = embed.get("color") if embed.get("color") else colour
8383
contents.update(embed)
84+
embed = discord.Embed.from_dict(contents)
85+
embed.color = colour
8486
if timestamp and isinstance(timestamp, datetime.datetime):
8587
timestamp = timestamp.replace(tzinfo=datetime.timezone.utc)
86-
contents["timestamp"] = timestamp
88+
embed.timestamp = timestamp
8789
else:
88-
contents["timestamp"] = datetime.datetime.now(tz=datetime.timezone.utc)
89-
embed = discord.Embed.from_dict(contents)
90-
embed.color = colour
90+
embed.timestamp = datetime.datetime.now(tz=datetime.timezone.utc)
9191
if footer:
9292
embed.set_footer(text=footer)
9393
if thumbnail:

0 commit comments

Comments
 (0)