kaikash Posted April 8, 2016 Report Share Posted April 8, 2016 Hello,There is a method isGlitched().If this method return true how to "reload" the offer to make it "not glitched"?Best wishes,Gleb Quote Link to comment Share on other sites More sharing options...
Gilroy Posted April 8, 2016 Report Share Posted April 8, 2016 i think theres a duplicate function you could use. Quote Link to comment Share on other sites More sharing options...
kaikash Posted April 8, 2016 Author Report Share Posted April 8, 2016 i think theres a duplicate function you could use.I need to call isGlitched method when tradeoffer's already acceptedDo you think duplicate method will work? Quote Link to comment Share on other sites More sharing options...
Gilroy Posted April 8, 2016 Report Share Posted April 8, 2016 I need to call isGlitched method when tradeoffer's already acceptedDo you think duplicate method will work?ive never used it so i wouldnt know, just an idea. Wouldnt you check isGlitched before accepting? Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted April 8, 2016 Report Share Posted April 8, 2016 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 } }); Quote Link to comment Share on other sites More sharing options...
kaikash Posted April 8, 2016 Author Report Share Posted April 8, 2016 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! Quote Link to comment Share on other sites More sharing options...
cookie Posted April 9, 2016 Report Share Posted April 9, 2016 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? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.