예제 #1
0
 public static Embed LeagueHistory(Summoner summoner, Match[] matches)
 => new EmbedBuilder()
 .WithCurrentTimestamp()
 .WithColor(Color.Red)
 .WithTitle($"{summoner.Name}'s last 10 games")
 .AddField("\0", LeagueFormatter.FormatHistory(matches, summoner.AccountId))
 .Build();
예제 #2
0
 public static Embed LeagueProfile(Summoner summoner, ChampionMastery[] champions)
 => new EmbedBuilder()
 .WithCurrentTimestamp()
 .WithColor(Color.Red)
 .WithTitle($"{summoner.Name}'s profile")
 .AddField("Top Champions", LeagueFormatter.FormatMasteries(champions))
 .Build();