public async Task GetCaseAsync(uint id) { var infraction = _moderation.GetInfraction(Context.Guild.Id, id); var infractioner = await Context.Client.Rest.GetUserAsync(infraction.InfractionerId); var moderator = await Context.Client.Rest.GetUserAsync(infraction.ModeratorId); var embed = new EmbedBuilder() { Title = $"#{infraction.Id} | {infraction.Type.Humanize()}", Description = $"**Reason:** {infraction.Reason}\n\u200b" } .WithFooter($"Id: {infraction.InfractionerId} | ModId: {moderator.Id}") .AddField($"User", $"{infractioner.Mention}", true) .AddField($"Moderator", $"{moderator.Mention}", true) .WithColor(_moderation.GetColorFromInfractionType(infraction.Type)); if (infraction.FinishesAt != null) { if (infraction.FinishesAt > DateTime.UtcNow) { embed.AddField($"Ends At", $"{(infraction.FinishesAt.Value - DateTime.UtcNow).Humanize(3, minUnit: TimeUnit.Second)}", true); } else { embed.AddField($"Ends At", $"Already ended.", true); } } await ReplyAsync($"", false, embed.Build()); }