Update interaction on Modal Submit
I can't call
interaction.update()
after I received a ModalSubmitInteraction
.
After I send a command, the bot replies with a button. After clicking the button, I call ButtonInteraction.showModal()
. I want to call ButtonInteraction.update()
upon modal submit, but there seems to be no proper way to do it (I am trying to change text on the button received from the modal submit).
Are there any workarounds for this?14 Replies
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
ModalSubmitInteraction#update()
Updates the original message of the component on which the interaction was received on.
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
I am using DEV
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
DiscordJS 14
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
It still doesn't like it though
Yeah, seems to be missing from the typings
can you use it after using the isFromMessage() typeguard?
Well, it is not from a message, but from a button
But the button is attached to a command reply
a button is on what?
a message.
Oh yes
Let me try
It works! Thank you!