Validate Slash command text
Is there a way to go about validating slash command text?
For instance I have a slash command that takes a name and a url in seperate choices, I want to check if the name they typed in already exists and preventing them from hitting enter/submiting if so. Can this be done? if so how?
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!Node is
v20.13.0
and discord.js is 14.13.0
no