ModalSubmitInteraction.update error

When I try to await interaction.update on a ModalSubmitInteraction I get an error Property 'update' does not exist on type 'ModalSubmitInteraction<CacheType>'. even though it should exist according to the docs. This was fine in v13, but it's now breaking in 14.
7 Replies
d.js docs
d.js docs3y ago
• What's your exact discord.js npm list discord.js and node node -v version? • Post the full error stack trace, not just the top part! • Show your code! • Explain what exactly your issue is. • Not a discord.js issue? Check out #useful-servers. Documentation suggestion for @jr.0:method ModalSubmitInteraction#isFromMessage() Whether this is from a MessageComponentInteraction.
duck
duck3y ago
typeguard with this
jr
jrOP3y ago
Ah, tyvm 🙂 Would this be worth adding to the v14 migration guide and https://discordjs.guide/interactions/modals.html#responding-to-modal-submissions page?
duck
duck3y ago
it does say that in the tip
jr
jrOP3y ago
I think it would be good to indicate this is required for .update
duck
duck3y ago
iirc you were submitting prs for the guide, so if you feel the tip should be more explicit, feel free to make one for that
jr
jrOP3y ago
alrighty, will do 🙂
Want results from more Discord servers?
Add your server