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
Daniel2y ago
look:
Daniel
Daniel2y ago
monbrey
monbrey2y 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 User2y ago
Message Not Public
Sign In & Join Server To View