private async Task <TldrIndex> GetIndex() { var indexFile = Path.Combine("tldr-cache", "index.json"); var tldrIndex = TldrIndex.FromJson(await File.ReadAllTextAsync(indexFile)); return(tldrIndex); }
public static string ToJson(this TldrIndex self) => JsonConvert.SerializeObject(self, tldr_Discord.Converter.Settings);