Jump to content
McKay Development

manager.on("offerList") not working


Recommended Posts

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?

Link to comment
Share on other sites

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

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

Captura de tela 2024-04-04 165237.png

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.

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

Loading...
×
×
  • Create New...