After executing this line of code, I am returned with this error:
C:\Users\<edit>\Documents\GitHub\bot\node_modules\steam-trade\index.js:200
data.sessionid = this.sessionID;
^
TypeError: Cannot set property 'sessionid' of undefined
at SteamTrade._send (C:\Users\<edit>\Documents\GitHub\bot\node_modules\steam
-trade\index.js:200:18)
at SteamClient.<anonymous> (C:\Users\<edit>\Documents\GitHub\bot\BotTCserver
.js:131:14)
at SteamClient.EventEmitter.emit (events.js:98:17)
at SteamClient.<anonymous> (C:\Users\<edit>\Documents\GitHub\bot\node_module
s\steam\lib\handlers\friends.js:172:12)
at Array.forEach (native)
at SteamClient.handlers.(anonymous function) (C:\Users\<edit>\Documents\GitH
ub\bot\node_modules\steam\lib\handlers\friends.js:168:32)
at SteamClient._netMsgReceived (C:\Users\<edit>\Documents\GitHub\bot\node_mo
dules\steam\lib\steam_client.js:102:26)
at SteamClient.handlers.(anonymous function) (C:\Users\<edit>\Documents\GitH
ub\bot\node_modules\steam\lib\steam_client.js:188:10)
at SteamClient._netMsgReceived (C:\Users\<edit>\Documents\GitHub\bot\node_mo
dules\steam\lib\steam_client.js:102:26)
at Connection.EventEmitter.emit (events.js:95:17)
C:\Users\<edit>\Documents\GitHub\bot>PAUSE
Press any key to continue . . .
I think this may be down to the way I have implemented it. But I am not really quite sure what to do.
With my bot I required it to send a trade request and I came across this function, which I think is what I need.
After executing this line of code, I am returned with this error:
I think this may be down to the way I have implemented it. But I am not really quite sure what to do.