Skip to content

Commit

Permalink
Utils: use proper timestamp fields in quotation embeds
Browse files Browse the repository at this point in the history
  • Loading branch information
kwzrd committed Feb 13, 2021
1 parent 5694112 commit 5f64be8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ryan/utils/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ async def relay_message(message: discord.Message, target: discord.TextChannel) -
else:
name = author.name

quote_embed = discord.Embed(description=message.content)
quote_embed = discord.Embed(description=message.content, timestamp=datetime.utcnow())
quote_embed.set_author(name=name, icon_url=author.avatar_url)
quote_embed.set_footer(text=f"{datetime.now()} - {message.guild.name} - {message.channel.name}")
quote_embed.set_footer(text=f"{message.guild.name} | {message.channel.name}")

if message.attachments:
log.debug(f"Relaying first of {len(message.attachments)} attachments")
Expand Down

0 comments on commit 5f64be8

Please sign in to comment.