Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Drapersniper committed Mar 30, 2022
1 parent 3f37143 commit 4899b9d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions redbot/cogs/audio/core/utilities/miscellaneous.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,13 @@ async def send_embed_msg(
embed = {}
colour = embed.get("color") if embed.get("color") else colour
contents.update(embed)
embed = discord.Embed.from_dict(contents)
embed.color = colour
if timestamp and isinstance(timestamp, datetime.datetime):
timestamp = timestamp.replace(tzinfo=datetime.timezone.utc)
contents["timestamp"] = timestamp
embed.timestamp = timestamp
else:
contents["timestamp"] = datetime.datetime.now(tz=datetime.timezone.utc)
embed = discord.Embed.from_dict(contents)
embed.color = colour
embed.timestamp = datetime.datetime.now(tz=datetime.timezone.utc)
if footer:
embed.set_footer(text=footer)
if thumbnail:
Expand Down

0 comments on commit 4899b9d

Please sign in to comment.