Jump to content
McKay Development

Recommended Posts

Posted

I need to call isGlitched method when tradeoffer's already accepted

Do you think duplicate method will work?

ive never used it so i wouldnt know, just an idea. Wouldnt you check isGlitched before accepting?

Posted

Use update. That will update the offer from the API.

 

 

offer.update(function(err) {
    if (err) {
        console.log(err);
    } else {
        // now the offer is fresh from the WebAPI
    }
});
Posted

 

Use update. That will update the offer from the API.

offer.update(function(err) {
    if (err) {
        console.log(err);
    } else {
        // now the offer is fresh from the WebAPI
    }
});

Thank you McKay!

Posted

 

Use update. That will update the offer from the API.

offer.update(function(err) {
    if (err) {
        console.log(err);
    } else {
        // now the offer is fresh from the WebAPI
    }
});

 

Is Calling getOffer Will also update the offer the next time?

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...