how do I edit my followup?

I get "The reply to this interaction has not been sent or deferred."
11 Replies
d.js toolkit
d.js toolkit2y ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button!
nBux
nBuxOP2y ago
Here is my code
awucado
awucado2y ago
interaction.editReply()
nBux
nBuxOP2y ago
thats in the code I want it to edit when the button in clicked but its not working
d.js docs
d.js docs2y ago
method ButtonInteraction#editReply() Edits a reply to this interaction.
nBux
nBuxOP2y ago
I got this
nBux
nBuxOP2y ago
nBux
nBuxOP2y ago
but it doesnt edit the reply, it just send another reply
nBux
nBuxOP2y ago
d.js docs
d.js docs2y ago
To share long code snippets use a service like gist, sourcebin, starbin, or similar instead of posting them as large code blocks.
nBux
nBuxOP2y ago
const updatedEmbed = new EmbedBuilder()
.setColor(0x5D04FD)
.setAuthor({ name: `MVSD Tournaments`, iconURL: interaction.user.displayAvatarURL(), url: 'https://discord.gg/mhZNYppAzt' })
.setDescription(":checkmark: **MVSDT** :checkmark:")
.addFields({ name: 'Successfully Left Queue!', value: ' ', inline: false })
.setThumbnail(imgURL)
.setTimestamp()
.setFooter({ text: 'MVSD Tournaments | .gg/VgqjTA8Fpv | By _it', iconURL: imgURL });

await interaction.editReply({ embeds: [updatedEmbed] });
const updatedEmbed = new EmbedBuilder()
.setColor(0x5D04FD)
.setAuthor({ name: `MVSD Tournaments`, iconURL: interaction.user.displayAvatarURL(), url: 'https://discord.gg/mhZNYppAzt' })
.setDescription(":checkmark: **MVSDT** :checkmark:")
.addFields({ name: 'Successfully Left Queue!', value: ' ', inline: false })
.setThumbnail(imgURL)
.setTimestamp()
.setFooter({ text: 'MVSD Tournaments | .gg/VgqjTA8Fpv | By _it', iconURL: imgURL });

await interaction.editReply({ embeds: [updatedEmbed] });
sorru about that https://starb.in/OvVAZx.js Oh, simple fix. Thank you for this
switch (selectedValue) {
case '1v1':
const leaveButton1v1 = new ButtonBuilder()
.setCustomId('leave_queue_1v1')
.setLabel('Leave Queue')
.setStyle(ButtonStyle.Danger);

const buttonRow1v1 = new ActionRowBuilder()
.addComponents(leaveButton1v1);

const queued1 = new EmbedBuilder()
.setColor(0x5D04FD)
.setAuthor({ name: `MVSD Tournaments`, iconURL: interaction.user.displayAvatarURL(), url: 'https://discord.gg/mhZNYppAzt' })
.setDescription(":loading: **MVSDT** :checkmark:")
.addFields({ name: 'Successfully Queued!', value: '1/2', inline: false })
.setThumbnail(imgURL)
.setTimestamp()
.setFooter({ text: 'MVSD Tournaments | .gg/VgqjTA8Fpv | By _it', iconURL: imgURL });

await interaction.followUp({ embeds: [queued1], components: [buttonRow1v1], ephemeral: true });
interaction.member.roles.add(Queued1v1Role);
break;
switch (selectedValue) {
case '1v1':
const leaveButton1v1 = new ButtonBuilder()
.setCustomId('leave_queue_1v1')
.setLabel('Leave Queue')
.setStyle(ButtonStyle.Danger);

const buttonRow1v1 = new ActionRowBuilder()
.addComponents(leaveButton1v1);

const queued1 = new EmbedBuilder()
.setColor(0x5D04FD)
.setAuthor({ name: `MVSD Tournaments`, iconURL: interaction.user.displayAvatarURL(), url: 'https://discord.gg/mhZNYppAzt' })
.setDescription(":loading: **MVSDT** :checkmark:")
.addFields({ name: 'Successfully Queued!', value: '1/2', inline: false })
.setThumbnail(imgURL)
.setTimestamp()
.setFooter({ text: 'MVSD Tournaments | .gg/VgqjTA8Fpv | By _it', iconURL: imgURL });

await interaction.followUp({ embeds: [queued1], components: [buttonRow1v1], ephemeral: true });
interaction.member.roles.add(Queued1v1Role);
break;
when someone selects soemthing in the select menu. They cant click it twice, how can they click it twice without having to select something else then that? nvm ill just mke them buttons
Want results from more Discord servers?
Add your server