Hellcase031 Posted February 17, 2018 Report Share Posted February 17, 2018 Following Code which is I used. var client = new SteamUser();var manager = new TradeOfferManager({ "steam": client, // Polling every 30 seconds is fine since we get notifications from Steam "domain": "example.com", // Our domain is example.com "language": "en", // We want English item descriptions "cancelTime" : 120000 //Cancellation Time in miliseconds 1000 ms = 1 second, After 2 minute cancel trade}); var offer = manager.createOffer(trade_url);offer.data('cancelTime', null); //I written my code to remove cancellation time for this trade but do not work this codeoffer.addMyItems(inv_to_trade); offer.setMessage("My Message here");offer.send(function (err, status) { if (err) { logger.error("trade send Error",err); return true; }}); Question : I written offer.data('cancelTime', null); but this do not work so How I cancel this offer ? Quote Link to comment Share on other sites More sharing options...
McMuffinDK Posted February 17, 2018 Report Share Posted February 17, 2018 I am not sure, but i think you need ti change the line to this: offer.cancelTime(null); Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted February 18, 2018 Report Share Posted February 18, 2018 offer.data('cancelTime', null); should be right. Maybe try using 0 instead of null? Quote Link to comment Share on other sites More sharing options...
McMuffinDK Posted February 18, 2018 Report Share Posted February 18, 2018 (edited) offer.data('cancelTime', null); should be right. Maybe try using 0 instead of null?Maybe as a workaround use offer.data('cancelTime', 864000000);? (Equal to 10 days) Edited February 18, 2018 by McMuffinDK Quote Link to comment Share on other sites More sharing options...
Hellcase031 Posted February 19, 2018 Author Report Share Posted February 19, 2018 (edited) offer.data('cancelTime', null); should be right. Maybe try using 0 instead of null?I tried this one also like offer.data("cancelTime",0); but not working. Trade cancel after 2 minute. Edited February 19, 2018 by Hellcase031 Quote Link to comment Share on other sites More sharing options...
Hellcase031 Posted February 19, 2018 Author Report Share Posted February 19, 2018 (edited) Maybe as a workaround use offer.data('cancelTime', 864000000);? (Equal to 10 days)I tried this one also like offer.data("cancelTime",864000000); but not working. Trade cancel after 2 minute. Edited February 19, 2018 by Hellcase031 Quote Link to comment Share on other sites More sharing options...
Hellcase031 Posted February 19, 2018 Author Report Share Posted February 19, 2018 I am not sure, but i think you need ti change the line to this: offer.cancelTime(null); I also try offer.cancelTime(null); but it give me error like offer.cancelTime is not a function Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted March 20, 2018 Report Share Posted March 20, 2018 It totally works. Just tested it myself. You're doing something else wrong. Maybe you're running two instances of the bot? 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.