How do you add commands to user-installed apps?
I'm not sure how to add commands to the apps. I'm using the default deploy script shown from https://discordjs.guide/creating-your-bot/command-deployment.html#guild-commands. Here's the code for the command:
I've deployed it and added it to my user.
npm list: 14.16
Node version: 20.16.0
3 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 staffI managed to solve it on my own.
I think i needed to set it to the numbers, and the setIntegrationTypes to an array. Not sure though, but it works now.
Neither of those changes should be necessary