I need help with this NPM package. I am trying to use it to gather destiny 2 data and it works perfectly fine with gathering data on PS4 and XB1 users but when it comes to gathering data on PC players i cant get it to work. Here is my code:
[quote]destiny2.getProfile('Zyenax', '4').then(data => console.log(data));[/quote]
I have tried that ^ and i have tried:
[quote]destiny2.getProfile('Zyenax#1565', '4').then(data => console.log(data));[/quote]
ERROR CODE:
[quote](node:7100) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Cannot read property 'membershipId' of undefined[/quote]
-
Not sure if this is the correct answer, but it seems that destinytracker uses a dash instead of hashtag. http://destinytracker.com/d2/profile/pc/Zyenax-1565