public async Task CatFact(CommandContext ctx) { var results = CatService.GetCatFactAsync().Result; var output = new DiscordEmbedBuilder() .WithDescription($":cat: {JObject.Parse(results)["fact"]}") .WithColor(DiscordColor.Orange); await ctx.RespondAsync(embed : output.Build()).ConfigureAwait(false); }
public void GetCatFact() { Assert.IsNotNull(CatService.GetCatFactAsync().Result); }