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) } }); }
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) } }); }