Jump to content
McKay Development

offer.getUserDetails is not a function

Recommended Posts

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) {



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}




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
Link to comment
Share on other sites

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.

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.


  • Create New...