Not Affect SelectMenu Default Option When Editing a Message

Hey, whenever I edit a message with a selectmenu component on it that like the user has clicked, setting it as the default - the default just disappears and returns to the placeholder value. My current method is as follows:
existingInteraction.components[0].components[0].options.map((option) => {
if (option.value === SubCommand.id) option.default = true;
else option.default = false;
});
existingInteraction.components[0].components[0].options.map((option) => {
if (option.value === SubCommand.id) option.default = true;
else option.default = false;
});
However this feels really clunky and inefficient. How would I edit a message but maintain the current default value?
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server