apibot Posted April 1, 2022 Report Posted April 1, 2022 (edited) community.getMarketItem(753, "753-Sack of Gems", (error, key) => { if (error) return console.log(error) setTimeout(() => { key.updatePrice((error) => { if (error) return console.log(error) console.log(key.lowestPrice) }) }, 1000 * 15) }) community.getMarketItem(753, "753-Sack of Gems", (error, key) => { if (error) return console.log(error) setTimeout(() => { key.updatePrice() console.log(key.lowestPrice) }, 1000 * 15) }) both throw "TypeError: callback is not a function" error node_modules/steamcommunity/classes/CMarketItem.js:113:4 Edited April 1, 2022 by apibot Quote
Dr. McKay Posted April 2, 2022 Report Posted April 2, 2022 (edited) The first argument to updatePrice is which currency you want to get prices in. It seems that the docs are wrong on this, so I've updated them. Edited April 2, 2022 by Dr. McKay 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.