Пример #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;
		}
Пример #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];
 }
Пример #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;
 }
Пример #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>();
 }
Пример #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>();
 }