Skip to content

Please allow updating interaction message flags #4348

Discussion options

You must be logged in to vote

OK, I was able to come up with my own solution. Before sending out the did you mean message, send a message response with a message like "Waiting on user". This message should also not have the ephemeral flag. You'll see why later. Then send the did you mean message as a follow up with the ephemeral flag.

You'll want to store the interaction ID and token from the slash command, as we'll be using it later. Don't forget to erase them after 15 mins.
After the user presses the button, we edit the did you mean message to something like "The answer is above". Then edit the original interaction using the ID and token you stored earlier.

Here's the source code to this yourWaifu/is-your-waifu-le…

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@yourWaifu
Comment options

@yourWaifu
Comment options

Comment options

You must be logged in to vote
1 reply
@yourWaifu
Comment options

Comment options

You must be logged in to vote
1 reply
@yourWaifu
Comment options

Answer selected by yourWaifu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants