Ejemplo n.º 1
0
		public BotCommand(CommandBuildInfo buildInfo) : base(buildInfo.method, buildInfo.parent, buildInfo.reqiredParameters?.Count)
		{
			InvokeName = buildInfo.commandData.CommandNameSpace;
			CommandRights = buildInfo.commandData.RequiredRights;
			Description = buildInfo.commandData.CommandHelp;
			UsageList = buildInfo.usageList;
		}
Ejemplo n.º 2
0
 public BotCommand(CommandBuildInfo buildInfo) : base(buildInfo.method, buildInfo.parent, buildInfo.reqiredParameters?.Count)
 {
     InvokeName     = buildInfo.commandData.CommandNameSpace;
     requiredRights = new string[] { "cmd." + string.Join(".", InvokeName.Split(' ')) };
     Description    = buildInfo.commandData.CommandHelp;
     UsageList      = buildInfo.usageList?.ToArray() ?? new UsageAttribute[0];
 }
Ejemplo n.º 3
0
 public BotCommand(CommandBuildInfo buildInfo) : base(buildInfo.method, buildInfo.parent, buildInfo.reqiredParameters?.Count)
 {
     InvokeName    = buildInfo.commandData.CommandNameSpace;
     CommandRights = buildInfo.commandData.RequiredRights;
     Description   = buildInfo.commandData.CommandHelp;
     UsageList     = buildInfo.usageList;
 }
Ejemplo n.º 4
0
 public BotCommand(CommandBuildInfo buildInfo) : base(buildInfo.Method, buildInfo.Parent)
 {
     InvokeName     = buildInfo.CommandData.CommandNameSpace;
     helpLookupName = buildInfo.CommandData.OverrideHelpName ?? ("cmd_" + InvokeName.Replace(" ", "_") + "_help");
     requiredRights = new[] { "cmd." + string.Join(".", InvokeName.Split(' ')) };
     UsageList      = buildInfo.UsageList?.ToArray() ?? Array.Empty <UsageAttribute>();
 }
Ejemplo n.º 5
0
 public BotCommand(CommandBuildInfo buildInfo) : base(buildInfo.Method, buildInfo.Parent)
 {
     InvokeName     = buildInfo.CommandData.CommandNameSpace;
     requiredRights = new[] { "cmd." + string.Join(".", InvokeName.Split(' ')) };
     Description    = buildInfo.CommandData.CommandHelp;
     UsageList      = buildInfo.UsageList?.ToArray() ?? Array.Empty <UsageAttribute>();
 }