ChatInputCommandInteraction options problem
Hi, I got little type related problem with getting the
ChatInputCommandInteraction
options. The problem appeared when I updated discord.js
to 14.14.1 from 14.11.0. Here's the code:
Here are the errors:
The code runs fine and does what it should but Typescript throws this errors that I want to get rid of.9 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 OPRestart TS server or reopen the editor window
Doesnt work
Another thing is when I jump to the typedefs, my IDE is throwing errors on almost entire get options types:
the
interaction.options.getBoolean
method however works fineWhat is your Typescript version?
4.9.5
its not an IDE problem, I checked this in VS code and its the same
Iirc our minimum version is 5.2
OK, i'll update soon
It works, thanks for help <3