slash command badge

Helo my bot does't have the badge for slash commande but i have 0 error :c
9 Replies
d.js toolkit
d.js toolkit8mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button! - Marked as resolved by OP
🤖 RoboticRobot 🤖
It takes a bit till discord updates that Its usually within 24 hours
_Syio
_SyioOP8mo ago
My code is good ?
duck
duck8mo ago
it no longer takes 24 hours and should be relatively instant, so in many cases you may just need to restart your discord client however in this case body of your PUT request should be an array, not a Map which would not jsonify to the expected array
d.js docs
d.js docs8mo ago
Converting a Collection to an array You only need to convert it to an array if you need the index of an entry: - Iteration (looping) is possible with for...of over Collection#values or forEach - You can transform a Collection to an array with Collection#map - If you need indices, you can get the array using [...collection.values()]
duck
duck8mo ago
you can convert a Map to an array the same way as this if the issue still persists, please log the array you're deploying to ensure it's populated properly
_Syio
_SyioOP8mo ago
thank you i try
duck
duck8mo ago
discord would need the whole application command data, not just the names of your commands without seeing it, I'd guess Command.Data is what you should be deploying
_Syio
_SyioOP8mo ago
okayy thank you is good ❤️
Want results from more Discord servers?
Add your server