"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 toolkit9mo 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
probablyraging9mo ago
Show your code!
MrYung_07
MrYung_07OP9mo ago
d.js docs
d.js docs9mo 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
probablyraging9mo 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_07OP9mo ago
How do I fix it? a ok Which one should I use
Want results from more Discord servers?
Add your server