Jump to content
McKay Development

Recommended Posts

Posted (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 by veritas

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