interaction.options.getString returns null
Hi, in the snippet here, all I'm trying to do is get the bot to repeat what the user writes, however all that I'm getting returned is null. Could anyone give a hand as to what my problem is?
Thanks!
4 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!
- ✅
Marked as resolved by OPYou cannot get the option, since there is no option made yet. In your slash command builder, add an option and make it required.
man i've read that page countless times, but always skipped that first part for some reason
thank you though, you're completely right!