"I am entering slash commands, and every time I start, I get this error. What can I do to resolve th

No description
6 Replies
d.js toolkit
d.js toolkit4mo 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!
probablyraging
probablyraging4mo ago
Show your code!
d.js docs
d.js docs4mo ago
To share long code snippets, use a service like gist, sourcebin, starbin, or similar instead of posting them as large code blocks or files.
probablyraging
probablyraging4mo ago
Why are you not just getting the string option of question to begin with?
- const questionOption = interaction.options.get('question');
+ const question = interaction.options.getString('question');
/..
- const question = questionOption.value;
- const questionOption = interaction.options.get('question');
+ const question = interaction.options.getString('question');
/..
- const question = questionOption.value;
MrYung_07
MrYung_074mo ago
How do I fix it? a ok Which one should I use