slash command badge
Helo my bot does't have the badge for slash commande but i have 0 error :c
9 Replies
- 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 OPIt takes a bit till discord updates that
Its usually within 24 hours
My code is good ?
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 arrayConverting 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()]
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 properlythank you i try
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 deployingokayy thank you is good ❤️