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
• 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: ModalSubmitInteraction#isFromMessage()
Whether this is from a MessageComponentInteraction.typeguard with this
Ah, tyvm 🙂 Would this be worth adding to the v14 migration guide and https://discordjs.guide/interactions/modals.html#responding-to-modal-submissions page?
it does say that in the tip
I think it would be good to indicate this is required for .update
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
alrighty, will do 🙂