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?
Was this page helpful?