Potential bug on the ModalSubmitInteraction class
In the documentation it says that there is a method "update" which does not exist in the class :
https://discord.js.org/docs/packages/discord.js/main/ModalSubmitInteraction:Class#update
discord.js
discord.js
discord.js is a powerful Node.js module that allows you to interact with the Discord API very easily. It takes a much more object-oriented approach than most other JS Discord libraries, making your bot's code significantly tidier and easier to comprehend.


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 OP" Property 'update' does not exist on type 'ModalSubmitInteraction<CacheType>'.ts(2339) "
you'll need to type guard with
<ModalSubmitInteraction>.isFromMessage() firstAhhh
Thank you !