Display system/member created date in embed footer.

Closes #122.
This commit is contained in:
Ske 2019-10-18 13:29:16 +02:00
parent 1d7a4d78db
commit c4d28f64c7

View File

@ -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);