veritas Posted August 15, 2022 Report Posted August 15, 2022 (edited) Hello, Im trying to get my active offers, and for that, my code is: trade_manager.getOffers(e_offer_filter.ActiveOnly, null, function (error, sent, received) { etc... } Im getting the TradeOffer class from the received argument, and I indeed get a valid response. TradeOffer { partner: SteamID { universe: 1, type: 1, instance: 1, accountid: 000} etc...., } The problem is: When I try to use the received[0].getUserDetails, the program crashes and outputs the following error: TypeError: received.getUserDetails is not a function Can someone help me? Im pretty sure Im getting the correct TradeOffer structure, I just can't use its functions. Edited August 15, 2022 by veritas Quote
veritas Posted August 16, 2022 Author Report Posted August 16, 2022 I fixed the problem, turns out I had an old version of the steam trade offer manager module. Quote
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.