static async isSubjects(argDef, argValue, command) {
    if (!(argValue instanceof DiscordSubjectsArg)) {
      ArgValidationTree.generateValidationError(
        argDef,
        command,
        'wrong subjects provided:',
        'arg_validation_wrong_subjects'
      );
    }
    if (argDef.validationOptions.singleEntity && (argValue.subjectIds.length + argValue.subjectRoles.length) > 1) {
      ArgValidationTree.generateValidationError(argDef, command, 'subjects array length > 1:',
        'arg_validation_non_single_subject_array');
    }
  }
/**
   * Validates a command's argument value against the isSubjects condition.
   * If singleEntity option is true, then also checks the count of subjects (should be 1).
   * @throws BotPublicError
   * @param  {CommandArgDef} argDef      the argument definition
   * @param  {Object}        argValue    the argument value
   * @param  {Command}       command     the command having the argument
   */
Validates a command's argument value against the isSubjects condition.
If singleEntity option is true, then also checks the count of subjects (should be 1).
@throws BotPublicError
@param  {CommandArgDef} argDef      the argument definition
@param  {Object}        argValue    the argument value
@param  {Command}       command     the command having the argument
Validates a command ' s argument value against the isSubjects condition . If singleEntity option is true then also checks the count of subjects ( should be 1 ) . @throws BotPublicError @param { CommandArgDef } argDef the argument definition @param { Object } argValue the argument value @param { Command } command the command having the argument
static async isSubjects(argDef, argValue, command) {
    if (!(argValue instanceof DiscordSubjectsArg)) {
      ArgValidationTree.generateValidationError(
        argDef,
        command,
        'wrong subjects provided:',
        'arg_validation_wrong_subjects'
      );
    }
    if (argDef.validationOptions.singleEntity && (argValue.subjectIds.length + argValue.subjectRoles.length) > 1) {
      ArgValidationTree.generateValidationError(argDef, command, 'subjects array length > 1:',
        'arg_validation_non_single_subject_array');
    }
  }
static async isSubjects ( argDef , argValue , command ) { if ( ! ( argValue instanceof DiscordSubjectsArg ) ) { ArgValidationTree . generateValidationError ( argDef , command , 'wrong subjects provided:' , 'arg_validation_wrong_subjects' ) ; } if ( argDef . validationOptions . singleEntity && ( argValue . subjectIds . length + argValue . subjectRoles . length ) > 1 ) { ArgValidationTree . generateValidationError ( argDef , command , 'subjects array length > 1:' , 'arg_validation_non_single_subject_array' ) ; } }
Validates a command's argument value against the isSubjects condition.
Validates a command ' s argument value against the isSubjects condition .