public async Task GetWarLogAsync() { var pagedWarLog = await Clash.GetWarLogAsync(Guild.ClanTag, 10); var warLog = pagedWarLog.Entity; var trimmedLog = Utilites.TrimWarLog(warLog); var sb = new StringBuilder(); sb.AppendLine("Reddit Rise's Last 7 Wars"); sb.AppendLine(); foreach (var war in trimmedLog) { sb.AppendLine(war.Result == WarResult.Lose ? $"- [LOSS] {war.Opponent.Name}" : $"+ [WIN ] {war.Opponent.Name}"); } await SendMessageAsync($"```diff\n{sb}\n```"); }