public async Task ListEnemies() { var embed = new EmbedBuilder(); var page = new Paginator(); page.Color = Color.DarkRed; page.Title = "Current Enemies"; int i = 1; foreach (var e in Program.Enemies) { embed.AddField($"{i}. {e.GetName()} - Lvl {e.GetLevel()}", e.GetStats()); if (i % 4 == 0) { page.AddPage(embed); embed = new EmbedBuilder(); } i++; } if (embed.Fields.Count > 0) { page.AddPage(embed); } page.SendMessage(Context); }
public async Task OpenStore() { var embed = new EmbedBuilder(); var page = new Paginator { Title = "Store", Color = Color.LightOrange }; var i = 1; foreach (var item in Program.ItemMap) { embed.Description += $"{item.Value.Name}: {item.Value.Cost} Money\n"; if (i % 5 == 0) { page.AddPage(embed); embed = new EmbedBuilder(); } i++; } if (embed.Description != "") { page.AddPage(embed); } page.SendMessage(Context); }