How to make a slash command parse multiple arguments?
- Discord.js ver. 13.6.0
- Node.js ver. 16.13.0
Say, I have a command called "create", and past the word create, I give it 2 words, then a number, it should detect that the 2 words are "first name" and "last name", but if I give it 3 words, it detects it as "first name", "middle name", and "last name"?
I also ask because I've been using the
"addStringOption" to the command, making it rather long and tedious for people to write in, as they have to select the option before writing in their option.The code for the command: https://pastebin.com/7Lamre1V
Code for the command handler, just in case: https://pastebin.com/vCMFAaGj
Pastebin
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Pastebin
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.