Select Menu Reply

await firstMessage.edit({
embeds: [productEditChooserEmbed],
components: [
new ActionRowBuilder().addComponents(
new SelectMenuBuilder()
.setCustomId("editProduct")
.setPlaceholder("Please choose what you want to edit...")
.addOptions([
{
label: "Name",
description: "The Product's Name",
value: "name",
},
])
),
],
});
await firstMessage.edit({
embeds: [productEditChooserEmbed],
components: [
new ActionRowBuilder().addComponents(
new SelectMenuBuilder()
.setCustomId("editProduct")
.setPlaceholder("Please choose what you want to edit...")
.addOptions([
{
label: "Name",
description: "The Product's Name",
value: "name",
},
])
),
],
});
For some reason this select menu shows the loading icon right next to the menu and says Interaction failed 3 seconds later without me even choosing an option
4 Replies
Daniel
DanielOP3y ago
look:
Daniel
DanielOP3y ago
monbrey
monbrey3y ago
This is because you're using message.edit instead of <ButtonInteraction>.update By not correctly responding to that interaction, even though you edit the component, Discord is still showing it as expecting a response/timing out
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server