Example #1
0
        public async Task <bool> InspectAsync(string guild)
        {
            var entries = _embeds.AllForGuild(guild).ToArray();

            if (entries.Any())
            {
                await ReplyAsync("No information found.");

                return(true);
            }

            var reply = new EmbedBuilder()
                        .WithTitle($"Info about guild #{guild}")
                        .WithFields(new EmbedFieldBuilder().WithName("Number of entries").WithValue(entries.Count()));

            await ReplyAsync(embed : reply.Build());

            return(true);
        }