예제 #1
0
 public HelpCommand(
     ILogger <Discostor> logger,
     ConfigRoot config,
     CommandService comms,
     HelpEmbedBuilder builder)
 {
     _logger  = logger;
     _config  = config.Discord;
     _comms   = comms;
     _builder = builder;
 }
예제 #2
0
        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());
            }
        }