Jump to content
McKay Development

Recommended Posts

Posted (edited)

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);

Edited by rektbot
Posted

Apologies I must be missing something but I can't spot it.

 

  • password and new email are mandatory options;
  • code, twofactor, sms are optional (code is optional in first instance)
  • callback is optional; i've tried setting err & smsemail

Could you give me a gentle nudge in the right direction please?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...