Make embed slightly nicer

pull/169/head
Stijn De Clercq 2023-02-17 00:39:32 +01:00
parent 264e7b5300
commit c0adc55be2
1 changed files with 6 additions and 3 deletions

View File

@ -65,9 +65,12 @@ class Discord(commands.Cog):
channel = self.client.get_channel(event.notification_channel) channel = self.client.get_channel(event.notification_channel)
human_readable_time = event.timestamp.strftime("%A, %B %d %Y - %H:%M") human_readable_time = event.timestamp.strftime("%A, %B %d %Y - %H:%M")
embed = discord.Embed(title="Upcoming Event", colour=discord.Colour.blue()) embed = discord.Embed(title=event.name, colour=discord.Colour.blue())
embed.description = f"{human_readable_time} (<t:{round(event.timestamp.timestamp())}:R>)" embed.set_author(name="Upcoming Event")
embed.add_field(name=event.name, value=event.description, inline=False) embed.description = event.description
embed.add_field(
name="Time", value=f"{human_readable_time} (<t:{round(event.timestamp.timestamp())}:R>)", inline=False
)
await channel.send(embed=embed) await channel.send(embed=embed)