discord.js collections
hello i have two discord collections one for my slash commands and one for my user commands (context menu commands) but im having a issue if i use concat and both commands have the same name, only one is left
how would i compaine the slashCommand and userCommand and messageCommand collections but also allow for commands to have the same name
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!is this a bad solution
converting into json so concat does not remove the commands with the same name
I don't really understand why you're deploying from a collection. It expects an array