xeroz333 Posted April 3 Report Share Posted April 3 (edited) I thought my code is broken, but when I received cs2 item trade offer manager can't find the trade offer to show (other stuff like tf2, rust is working fine) the code I use : manager.getOffers(1, (err, sent, received) => { if (err) { console.log('Get offers error: ', err); return; } if (received.length > 0) { for (const offer of received) { if (offer.itemsToGive.length === 0 && offer.itemsToReceive.length > 0) { offer.accept((err, status) => { if (err)return; }); } } } Edited April 3 by xeroz333 Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted April 3 Report Share Posted April 3 Yes, that seems to be correct. Quote Link to comment Share on other sites More sharing options...
xeroz333 Posted April 3 Author Report Share Posted April 3 is there any endpoint to check cs2 trade offers ? Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted April 3 Report Share Posted April 3 Not that I'm aware of. I've heard, but not personally confirmed, that if you use an access token you still receive CS2 offers as normal. xeroz333 1 Quote Link to comment Share on other sites More sharing options...
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.