From c4d28f64c7d997c3e91fa9a92f7adbbee50a03bc Mon Sep 17 00:00:00 2001 From: Ske Date: Fri, 18 Oct 2019 13:29:16 +0200 Subject: [PATCH] Display system/member created date in embed footer. Closes #122. --- PluralKit.Bot/Services/EmbedService.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PluralKit.Bot/Services/EmbedService.cs b/PluralKit.Bot/Services/EmbedService.cs index ee8720db..fe4438b1 100644 --- a/PluralKit.Bot/Services/EmbedService.cs +++ b/PluralKit.Bot/Services/EmbedService.cs @@ -36,8 +36,8 @@ namespace PluralKit.Bot { .WithColor(Color.Blue) .WithTitle(system.Name ?? null) .WithThumbnailUrl(system.AvatarUrl ?? null) - .WithFooter($"System ID: {system.Hid}"); - + .WithFooter($"System ID: {system.Hid} | Created on {Formats.ZonedDateTimeFormat.Format(system.Created.InZone(system.Zone))}"); + var latestSwitch = await _switches.GetLatestSwitch(system); if (latestSwitch != null) { @@ -91,7 +91,7 @@ namespace PluralKit.Bot { // TODO: add URL of website when that's up .WithAuthor(name, member.AvatarUrl) .WithColor(color) - .WithFooter($"System ID: {system.Hid} | Member ID: {member.Hid}"); + .WithFooter($"System ID: {system.Hid} | Member ID: {member.Hid} | Created on {Formats.ZonedDateTimeFormat.Format(member.Created.InZone(system.Zone))}"); if (member.AvatarUrl != null) eb.WithThumbnailUrl(member.AvatarUrl);