Skip to content
Advertisement

Tag: discord.js

How can I input a number API as a string OR Where am I going to place toString()

So the code I’m trying to send is ( “buyPrice”:11.0 ). on the site (https://api.hypixel.net/skyblock/bazaar/product?key=a8394dae-033b-4ce5-a1a1-fb773cf2386f&productId=PORK). As you can see, the value inside the buyPrice is not a string but a number. And now, when I send the command into discord, it says “undefined”. But when I saw a code bellow that is valued is a string of the same website

Client.roles.cache.size => undefined | Discord.js v12 [closed]

Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 2 years ago. Improve this question client.roles.cache.size doesn’t seem to work for me in v12, just says that cache is undefined Any alternatives for how I can get the total number

Advertisement