mirror of
https://github.com/stijndcl/didier.git
synced 2026-04-15 03:25:48 +02:00
Make embed slightly nicer
This commit is contained in:
parent
264e7b5300
commit
c0adc55be2
1 changed files with 6 additions and 3 deletions
|
|
@ -65,9 +65,12 @@ class Discord(commands.Cog):
|
|||
channel = self.client.get_channel(event.notification_channel)
|
||||
human_readable_time = event.timestamp.strftime("%A, %B %d %Y - %H:%M")
|
||||
|
||||
embed = discord.Embed(title="Upcoming Event", colour=discord.Colour.blue())
|
||||
embed.description = f"{human_readable_time} (<t:{round(event.timestamp.timestamp())}:R>)"
|
||||
embed.add_field(name=event.name, value=event.description, inline=False)
|
||||
embed = discord.Embed(title=event.name, colour=discord.Colour.blue())
|
||||
embed.set_author(name="Upcoming Event")
|
||||
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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue