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.
No description
No description
4 Replies
d.js toolkit
d.js toolkit7mo 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! - Marked as resolved by OP
Shurei
ShureiOP7mo ago
" Property 'update' does not exist on type 'ModalSubmitInteraction<CacheType>'.ts(2339) "
duck
duck7mo ago
you'll need to type guard with <ModalSubmitInteraction>.isFromMessage() first
Shurei
ShureiOP7mo ago
Ahhh Thank you !

Did you find this page helpful?