Hi There, Having a callback issue with the changeEmail command. Any help would be very appreciated. Code: (logOnOptions removed)
function ChangeEmail(password){
client.changeEmail(password, myemail, function(err) {
console.log(err);
emailDone = true; // just a poor handler, still get error without it.
});
}
client.logOn(logOnOptions);
client.on('loggedOn', function() { console.log("Logged into Steam"); ChangeEmail(password); });
Error:
/node_modules/steam-user/components/account.js:143
callback(Helpers.eresultError(body.eresult));
^
TypeError: callback is not a function
I have also tried simplifying to:
client.changeEmail(password, myemail);