public async Task HelpAsync() { var message = await ReplyNewEmbed("Building the help command... This message will be deleted when all help messages are sent", Color.Purple); foreach (var module in CommandService.Modules.Where(x => !x.Name.Contains("ModuleBase"))) { var moduleHelpEmbed = HelpCommandUtilities.GetModuleHelpEmbed(module, Context, Services); if (moduleHelpEmbed.Fields.Length > 0) { await ReplyAsync(embed : moduleHelpEmbed); } } await message.DeleteAsync(); }
public async Task HelpAsync() { await ReplyAsync("Only the messages you have permission to use in this channel are included."); var tempEmbed = new EmbedBuilder { Description = "Building the help command... This message will be deleted when all help messages are sent", Color = Color.Blue }; var tempMessage = await ReplyAsync(embed : tempEmbed.Build()); foreach (var module in CommandService.Modules.Where(x => !x.Name.Contains("ModuleBase"))) { var moduleHelpEmbed = HelpCommandUtilities.GetModuleHelpEmbed(module, Context, Services, Config); if (moduleHelpEmbed.Fields.Length > 0) { await ReplyAsync(embed : moduleHelpEmbed); } } await tempMessage.DeleteAsync(); }