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
d.js toolkit
d.js toolkit10mo 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!
Xu Xiaolan
Xu Xiaolan10mo ago
this the other command
chewie 🌈
chewie 🌈10mo ago
Sounds like the way you check what command was executed has some flaws Show your command handler
Xu Xiaolan
Xu Xiaolan10mo ago
sorry, got very busy, this part?
chewie 🌈
chewie 🌈10mo ago
Yeah, make aliases an array and it should work, otherwise use ===
Xu Xiaolan
Xu Xiaolan10mo ago
❤️ will try