Can you do multiple 'interaction acknowledgements' to one interaction?

Hello! I'm currently trying to make a button that both pops up a modal, and updates the original message with disabled buttons so that noone else can access the buttons while the first person is still interacting. However, because both causing a modal to popup and updating the original message are considered acknowledgements of the interaction, it is throwing an error. is there anyway to avoid this/do it properly?
3 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
d.js docs
d.js docs2y ago
DiscordAPIError: Interaction has already been acknowledged[InteractionAlreadyReplied]: The reply to this interaction has already been sent or deferred. You have already replied to the interaction. • Use <Interaction>.followUp() to send a new message • If you deferred reply it's better to use <Interaction>.editReply() • Responding to slash commands / buttons / select menus
Tyranasaurus
Tyranasaurus2y ago
ah thank you I think this is the perfect thing for me I appreciate it!