예제 #1
0
        public List <DiscordEmbedBuilder> GetEmbedsFromSearchResult(DiscordClient discordClient)
        {
            DiscordEmbedBuilder outBuilder;

            var title = "Folkets Lexicon";

            if (_ordEntry == null)
            {
                outBuilder = new DiscordEmbedBuilder();
                outBuilder.AddSearchTitle(discordClient, title);
                outBuilder.WithDescription(Strings.NoResultFound);
            }
            else
            {
                outBuilder = _ordEntry.AsEmbedBuilder();
                outBuilder.AddSearchTitle(discordClient, title);
            }

            outBuilder.SetupWithDefaultValues(discordClient);

            return(new List <DiscordEmbedBuilder>()
            {
                outBuilder
            });
        }