public async Task HelpAsync() { var modules = _commands.Modules.Where(m => !m.IsSubmodule).ToList(); var helpWizard = new HelpWizard(modules, _feedback, _help, this.Context.User); await _interactive.SendPrivateInteractiveMessageAndDeleteAsync ( this.Context, _feedback, helpWizard, TimeSpan.FromMinutes(30) ); }
public async Task ShowServersStatsAsync() { var guilds = await this.Context.Client.GetGuildsAsync(); var pages = guilds.Select(CreateGuildInfoEmbed); var paginatedMessage = new PaginatedEmbed(_feedback, _interactivity, this.Context.User).WithPages(pages); await _interactivity.SendPrivateInteractiveMessageAndDeleteAsync ( this.Context, _feedback, paginatedMessage ); }