Пример #1
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());
            }
        }
Пример #2
0
 public async Task HelpAsync([Remainder] string cmd = null)
 {
     await ReplyAsync(embed : _builder.Build(cmd));
 }