This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
1
repeatedly editing interaction response until
Post Body
so i have a clashcommand interaction with
const response = await interaction.reply({
content: `responstitle`,
components: [row1, row2, row3, row4],
ephemeral: true,
});
const collectorFilter = i => i.user.id === interaction.user.id;
now, a button in row 1 sets a global which then is used to rebuild row2, and then a button on row 2 enabled buttons on row 3.
i've then got
try {
const confirmation = await response.awaitMessageComponent({ filter: collectorFilter, time: 60_000 });
...
const response2 = await interaction.editReply({
content: `responsetitle`,
components: [row1, row2, row3, row4],
ephemeral: true,
})
but once i've edited the reply, clicking on a button in Row doesn't do anything, and it says the "interaction failed".
how do i restructure to enable repeated responses/edits to the interaction until i get to the end (row 3 button clicked on will result in
interaction.editreply({ content: calculatedResponse, components: [] });
so there's a specific end point in mind.
Author
Account Strength
90%
Account Age
6 years
Verified Email
Yes
Verified Flair
No
Total Karma
2,295
Link Karma
652
Comment Karma
1,623
Profile updated: 2 days ago
Posts updated: 7 months ago
Subreddit
Post Details
We try to extract some basic information from the post title. This is not
always successful or accurate, please use your best judgement and compare
these values to the post title and body for confirmation.
- Posted
- 10 months ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/Discordjs/c...