Esempio n. 1
0
        public static PaginatedMessage FormatModuleHelp(ModuleInfo module)
        {
            var pages  = new List <EmbedPage>();
            var fields = HelpUtilities.GetCommandUsagesFromModule(module);

            HelpUtilities.AddHelpPages(module, fields, ref pages);

            return(new PaginatedMessage
            {
                Pages = pages,
                Options = new PaginatedAppearanceOptions {
                    Timeout = TimeSpan.FromSeconds(Timeout)
                }
            });
        }
Esempio n. 2
0
        public static PaginatedMessage FormatHelp(IEnumerable <ModuleInfo> modules)
        {
            var pages = new List <EmbedPage>();

            foreach (var module in modules)
            {
                var fields = HelpUtilities.GetCommandUsagesFromModule(module);
                HelpUtilities.AddHelpPages(module, fields, ref pages);
            }

            return(new PaginatedMessage
            {
                Pages = pages,
                Options = new PaginatedAppearanceOptions {
                    Timeout = TimeSpan.FromSeconds(Timeout)
                }
            });
        }