Example #1
0
 public CommandGroupBuilder CreateGroup(string cmd, Action <CommandGroupBuilder> config)
 {
     config(new CommandGroupBuilder(_service, CommandBuilder.AppendPrefix(_prefix, cmd), _category, _checks));
     return(this);
 }
Example #2
0
        public CommandBuilder CreateCommand(string cmd)
        {
            var command = new Command(CommandBuilder.AppendPrefix(_prefix, cmd));

            return(new CommandBuilder(_service, command, _prefix, _category, _checks));
        }