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

Did you find this page helpful?