async function stats( units, flags ) {
	
	try {
    	
    	let stats = null;
    	if( Array.isArray(units) ) {
    		// Get stats from array of profile roster units
    		stats = await swgoh.rosterStats(units, flags);
    	} else {
    	    // Get stats from units index
    		stats = await swgoh.unitsStats(units, flags);
    	}
    	
		return stats;
		
	} catch(e) { 
		throw e; 
	}    		

}
/**
 *  Fetch units from api with arrays of allycodes or discord id's
 *  ! This will fetch direct from api and will not cache 
 * 
 *  Params
 *  @ids - array of allycodes or discordIds to request (! discord Id requires patreon-tier api user)
 *  @language - language code for reply
 */
Fetch units from api with arrays of allycodes or discord id's
! This will fetch direct from api and will not cache

Params
@ids - array of allycodes or discordIds to request (. discord Id requires patreon-tier api user)
@language - language code for reply
Fetch units from api with arrays of allycodes or discord id ' s ! This will fetch direct from api and will not cache Params @ids - array of allycodes or discordIds to request ( . discord Id requires patreon - tier api user ) @language - language code for reply
async function stats( units, flags ) {
	try {
    	let stats = null;
    	if( Array.isArray(units) ) {
    		stats = await swgoh.rosterStats(units, flags);
    	} else {
    		stats = await swgoh.unitsStats(units, flags);
    	}
		return stats;
	} catch(e) { 
		throw e; 
	}    		
}
async function stats ( units , flags ) { try { let stats = null ; if ( Array . isArray ( units ) ) { stats = await swgoh . rosterStats ( units , flags ) ; } else { stats = await swgoh . unitsStats ( units , flags ) ; } return stats ; } catch ( e ) { throw e ; } }
Fetch units from api with arrays of allycodes or discord id's
  !
Fetch units from api with arrays of allycodes or discord id ' s !
// Get stats from array of profile roster units // Get stats from units index