Error when adding a String option

Hey, when using ..addStringOption I get a error of ExpectedValidationError > s.instance(V). It works with adding a user option, but not a string option?
.addStringOption(option => {
option
.setName("question")
.setDescription("Question to OpenAI")
.setRequired(true)
})
.addStringOption(option => {
option
.setName("question")
.setDescription("Question to OpenAI")
.setRequired(true)
})
2 Replies
Favna
Favna2y ago
If this still an issue
Spinel
Spinel2y ago
When asking for help, make sure to provide as much detail as possible. What have you tried so far? Do you have stacktraces that you can show us? What are you trying to achieve? Try to answer these questions and others, so we do not have to ask for them afterwards.
❯ For a good guide on how to ask questions, see the instructions that StackOverflow gives. You should try to always follow these guidelines. ❯ For an excellent video that shows how not to ask technical questions is this, watch this YouTube video by LiveOverflow. ❯ Asking technical questions (Clarkson)How to ask questions the smart way (Raymond)
Want results from more Discord servers?
Add your server