https://lency.is-a.fail/5zbOFEzKf.png
https://lency.is-a.fail/5zbOM297l.png
code works but gives type error
await (modal as any).deferUpdate();
Will this be fixed in future updates?
15 messages · Page 1 of 1 (latest)
https://lency.is-a.fail/5zbOFEzKf.png
https://lency.is-a.fail/5zbOM297l.png
code works but gives type error
await (modal as any).deferUpdate();
Will this be fixed in future updates?
You're using it incorrectly, so, it's a you issue
Not all modal submit interactions come from buttons, and thus, it is not present like that
You'll have to check if it is from a message
I don't think you understood what I wrote correctly
code works but gives type error
I did understand, it's you who isn't
In fairness if you're on v13, the types for the typeguard are there but the method is not
Well the tag is dev, and their documentation link above
ModalSubmitInteraction#isFromMessage()
Whether this is from a [MessageComponentInteraction](<https://discord.js.org/#/docs/discord.js/main/class/MessageComponentInteraction>).
I am not doing anything with the message. I mean there is no type support but the code works.
https://lency.is-a.fail/5zbWUAlOm.gif
There is type support - if you use the correct typeguard