Various bug fixes

This commit is contained in:
Ske 2018-11-08 16:25:58 +01:00
parent 3fca071c1d
commit f4512fc7e9
4 changed files with 26 additions and 25 deletions

View file

@ -36,7 +36,7 @@ async def message_info(ctx: CommandContext):
original_sender = None
embed = discord.Embed()
embed.timestamp = discord.utils.snowflake_time(str(mid))
embed.timestamp = discord.utils.snowflake_time(mid)
embed.colour = discord.Colour.blue()
if message.system_name:
@ -55,8 +55,7 @@ async def message_info(ctx: CommandContext):
embed.add_field(name="Sent by", value=sender_name)
message_content = await get_message_contents(ctx.client, message.channel, message.mid)
if message_content:
embed.description = message_content
embed.description = message_content or "(unknown, message deleted)"
embed.set_author(name=message.name, icon_url=message.avatar_url or discord.Embed.Empty)