private async Task ReplyAppendDescriptionAsync(ISpecies species) { if (species.IsValid()) { IMessage message = new Message($"Reply with the description for {species.GetRank().GetName()} **{species.GetFullName()}**."); IResponsiveMessageResponse response = await ResponsiveMessageService.GetResponseAsync(Context, message); if (!response.Canceled) { await ReplyAppendDescriptionAsync(species, await GetDescriptionFromMessageAsync(response.Message)); } } }
private async Task ReplySetTaxonDescriptionAsync(ITaxon taxon) { if (taxon.IsValid()) { IMessage message = new Message($"Reply with the description for {taxon.GetRank().GetName()} **{TaxonFormatter.GetString(taxon, false)}**."); IResponsiveMessageResponse response = await ResponsiveMessageService.GetResponseAsync(Context, message); if (!response.Canceled) { await ReplySetTaxonDescriptionAsync(taxon, await GetDescriptionFromMessageAsync(response.Message)); } } }