Open thepipster opened 4 years ago
It's an easy fix, I would submit a pull request but I don't have the rights to create a branch. The fix is;
Change;
return instantiateUser({ data, headerObj, client: this });
to
return await instantiateUser({ data, headerObj, client: this });
@thepipster, just FYI, you can fork the repo, create a branch in your fork, and then create a pull request from that branch.
Thanks @dguo, and yes @thepipster please follow the Fork and Pull Request procedure for now.
There is a missing await around the instantiateUser method in the lib/Client class