code: function makeColonies(char) {
      return function (id) {
          if (id === undefined) {
              return char.agent.request('get_characters_character_id_planets', { path: { character_id: char.id } }, char.ssoToken);
          }
          else {
              return new ColonyImpl(char, id);
          }
      };
  }
docs: Create a new {@link Colonies} instance that uses the given character agent to
  make its HTTP requests to the ESI interface.
  
  @param char The character access information
  @returns An Colonies API instance