So I’m creating a bot with an API, and the list is pretty case sensitive and only allowing exact matches. For example, there I have the word “ENCHANTED_GLISTERING_MELON”. Its all-caps have underscores and complicated spelling, and the site does not accept if it is not an exact match. It is not so user-friendly. Is there any way to so that
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
How do I show what emojis are in the server
So I was working on a discord.js server info command. So I had an idea, of showing the emojis that are in a server, though I don’t know how to do that. I do know how to get the amount of emojis, but I’m not sure how to get the emojis. Answer
i need a way my bot can respond with a random response like and 8ball command
Preferably through a const such as const responses = [“response1”, “response2″, response3”] using discord.js v12.2.0. Answer
Temporary mute command returning error ‘Cannot read property ‘slice’ of undefined’
I am trying to create a temporary mute command, that will unmute the muted user in the given time. Here’s my code: Currently getting the following error: Cannot read property ‘slice’ of undefined Do you have any idea on how to fix the command? edit this after a year and this is for future people who come here the issue
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
How to I make my music bot play a finite playlist of songs?
Building further on my music bot… I’m trying to make the jump from having him play a single song, and then leave, to having him play a finite list of songs, and then leave. This should not be confused with a queue – the list of songs is predetermined and finite. It can’t be added to or changed by the
How to fix cannot read property “send” of undefined
This question might have a few duplicates, but the code there is different and none of the answers work for me. I’m new to discord.js so it might just be a silly mistake. This is my code – I really don’t know how to fix this, so all the solutions I have tried lead to this error. Also if you
How to fix cannot read property “send” of undefined
This question might have a few duplicates, but the code there is different and none of the answers work for me. I’m new to discord.js so it might just be a silly mistake. This is my code – I really don’t know how to fix this, so all the solutions I have tried lead to […]
How to make bot send message to another channel after reaction | Discord.js
How do I make it so that when someone reacts with the first emoji in this command, the bot deletes the message and sends it to another channel? Current Code: Answer You can use awaitReactions, createReactionCollector or messageReactionAdd event, I think awaitReactions is the best option here since the other two are for more global purposes,