CHCMATT
CHCMATT
DIAdiscord.js - Imagine an app
Created by CHCMATT on 7/20/2023 in #djs-questions
Edit an interaction reply after StringSelectMenu choice
I'm using [email protected]. When a button is pressed, I reply to that interaction with a message that contains a String Select Menu. Once a choice is selected from the String Select Menu, I'd like to then update that original message to remove the String Select Menu. I know I'd use components: [], but I'm having trouble editing the reply after selection because once a selection is made, then you have a new interaction, so therefore interaction.editReply doesn't work, because it's trying to edit the reply of the new interaction. Is there a good way to grab the previous interaction and then run the editReply function on it?
2 replies