Jump to content
McKay Development

veritas

Member
  • Posts

    2
  • Joined

  • Last visited

Posts posted by veritas

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

×
×
  • Create New...