Пример #1
0
        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));
                }
            }
        }
Пример #2
0
        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));
                }
            }
        }