vinilllll Posted April 4 Report Posted April 4 i use the manager.on to get the list of offers from my user. But right now, i am not receiving nothing, here's my code: Before que steam update was working perfectly. manager.on("offerList", async (_, offers) => { if (offers.length !== 0) { const offersIds = offers.map((offer) => `offers:${offer.id}`); console.log(offersIds); }); this is my configuration of TradeOfferManager: const manager = new TradeOfferManager({ steam: client, community: community, language: "br", }); can anyone help me, pls? Quote
loganWP Posted April 4 Report Posted April 4 1 hour ago, vinilllll said: i use the manager.on to get the list of offers from my user. But right now, i am not receiving nothing, here's my code: Before que steam update was working perfectly. manager.on("offerList", async (_, offers) => { if (offers.length !== 0) { const offersIds = offers.map((offer) => `offers:${offer.id}`); console.log(offersIds); }); this is my configuration of TradeOfferManager: const manager = new TradeOfferManager({ steam: client, community: community, language: "br", }); can anyone help me, pls? Update package to latest version and add useAccessToken: true to your constructor const manager = new TradeOfferManager({ steam: client, community: community, language: "br", useAccessToken: true }); Berlioz 1 Quote
vinilllll Posted April 4 Author Report Posted April 4 35 minutes ago, loganWP said: Update package to latest version and add useAccessToken: true to your constructor const manager = new TradeOfferManager({ steam: client, community: community, language: "br", useAccessToken: true }); I am using the latest version available: "steam-tradeoffer-manager": "^2.11.1", but still shows me an error Quote
Dr. McKay Posted April 4 Report Posted April 4 The third-party typescript definitions haven't been updated for 2.11.0. Just suppress the error. Quote
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.