Exemplo n.º 1
0
        /// <summary>
        /// Generated and sends an embedded message containing information about a module
        /// </summary>
        private async Task HelpModule(ModuleInfo module)
        {
            EmbedBuilder builder = new EmbedBuilder();

            builder.Title       = module.FullModuleName();
            builder.Description = module.Summary;

            builder.AddField(field =>
            {
                field.Name  = "Commands:";
                field.Value = String.Join('\n', module.Commands.Select(x => x.FullCommandName() + ": " + x.Summary));
            });

            await ReplyAsync(embed : builder.Build());
        }