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 toolkit16mo 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
nBuxOP16mo ago
Here is my code
awucado
awucado16mo ago
interaction.editReply()
nBux
nBuxOP16mo ago
thats in the code I want it to edit when the button in clicked but its not working
d.js docs
d.js docs16mo ago
method ButtonInteraction#editReply() Edits a reply to this interaction.
nBux
nBuxOP16mo ago
I got this
nBux
nBuxOP16mo ago
nBux
nBuxOP16mo ago
but it doesnt edit the reply, it just send another reply
nBux
nBuxOP16mo ago
d.js docs
d.js docs16mo ago
To share long code snippets use a service like gist, sourcebin, starbin, or similar instead of posting them as large code blocks.
nBux
nBuxOP16mo 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