quick question about module.export aliases for commands
i have this command with aliase being 'cam' short for campaign, but i have another command that has an aliase 'c', yet doing prefix c or prefix ca, assumes i mean prefix cam, is there a better solution to have shortened command names?
6 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!this the other command
Sounds like the way you check what command was executed has some flaws
Show your command handler
sorry, got very busy, this part?
Yeah, make aliases an array and it should work, otherwise use ===
❤️ will try