public async Task GetMediaInfo(string media) { if (!string.IsNullOrWhiteSpace(media)) { IEnumerable <TasteItem> info = await _tasteService.GetInfo(media); if (!info.Any()) { await ReplyAsync($"No information found related with {media}."); } await Task.WhenAll(info.Select(i => ReplyAsync("", false, EmbedViews.TasteItem(i)))); } }
public async Task GetMediaRecommendation(string media) { if (!string.IsNullOrWhiteSpace(media)) { IEnumerable <TasteItem> recommendation = await _tasteService.GetRecommendation(media); if (!recommendation.Any()) { await ReplyAsync($"No recommendation found based on {media}."); } await Task.WhenAll(recommendation.Select(i => ReplyAsync("", false, EmbedViews.TasteItem(i)))); } }
public async Task Commands() { await ReplyAsync(string.Empty, false, EmbedViews.Commands(_client.CurrentUser, _config.PayPalUrl)); }
public async Task Donate() { await ReplyAsync(string.Empty, false, EmbedViews.Donate(_config.PayPalUrl)); }