#ModalSubmitInteraction.deferUpdate() type error

15 messages · Page 1 of 1 (latest)

leaden shadow
solid barn
#

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

leaden shadow
#

I don't think you understood what I wrote correctly

#

code works but gives type error

solid barn
#

I did understand, it's you who isn't

vast cairn
#

In fairness if you're on v13, the types for the typeguard are there but the method is not

solid barn
#

Well the tag is dev, and their documentation link above

vast cairn
#

There's a PR to address that

#

Then yes

smoky grottoBOT
leaden shadow
vast cairn
#

There is type support - if you use the correct typeguard