public HelpCommand( ILogger <Discostor> logger, ConfigRoot config, CommandService comms, HelpEmbedBuilder builder) { _logger = logger; _config = config.Discord; _comms = comms; _builder = builder; }
private async Task ShowCommandHelp(string commandName) { var command = _service.Commands.FirstOrDefault(x => x.Name == commandName); if (command == null) { await ReplyAsync(TextUtils.GetWarnText($"Command [{commandName}] not found")); } else { var eb = new HelpEmbedBuilder(command); await ReplyAsync("", false, eb.Build()); } }