How to reset option after selecting from string select menu

This might be a minor thing, but I was wondering how you can make it after selecting an option inside of a string select menu, it resets the option back? Example: By default, "select ping" is selected After Clicking, I want it to reset back to the "select ping" option and not whatever I actually selected I seen other bots do this, just wasn't sure how I can do it myself
No description
21 Replies
d.js toolkit
d.js toolkit3d ago
maZ
maZOP3d ago
.addOptions(
{
label: "Select Region",
value: "select",
default: true,
emoji: { name: "🌐" },
},
{
label: "North America",
value: "na",
emoji: { name: "🌎" },
},
{
label: "South America",
value: "sa",
emoji: { name: "🌎" },
},
{
label: "Europe",
value: "eu",
emoji: { name: "🌍" },
},
{
label: "Asia",
value: "asia",
emoji: { name: "🌏" },
}
);
.addOptions(
{
label: "Select Region",
value: "select",
default: true,
emoji: { name: "🌐" },
},
{
label: "North America",
value: "na",
emoji: { name: "🌎" },
},
{
label: "South America",
value: "sa",
emoji: { name: "🌎" },
},
{
label: "Europe",
value: "eu",
emoji: { name: "🌍" },
},
{
label: "Asia",
value: "asia",
emoji: { name: "🌏" },
}
);
That is how I actually add my options
Unknown User
Unknown User3d ago
Message Not Public
Sign In & Join Server To View
Unknown User
Unknown User3d ago
Message Not Public
Sign In & Join Server To View
maZ
maZOP3d ago
I am unsure how to actually reset the menu after getting an interaction
Unknown User
Unknown User3d ago
Message Not Public
Sign In & Join Server To View
بس الحياه بضنتني potato
i usually make a "reset" option that doesn't make anything or maybe reply with an ephirmal message
maZ
maZOP3d ago
For reference, I am trying to get something like this (unsure if discohook just edits the message and it doesnt show edited)?
Unknown User
Unknown User3d ago
Message Not Public
Sign In & Join Server To View
maZ
maZOP3d ago
Its in a container, unsure if that will count as embed?
Unknown User
Unknown User3d ago
Message Not Public
Sign In & Join Server To View
maZ
maZOP3d ago
If im using message component v2 container, just rebuild the entire container? sorry if im slow
Unknown User
Unknown User3d ago
Message Not Public
Sign In & Join Server To View
maZ
maZOP3d ago
It does reset the option, but do you know if there is any way for it to not show "edited"? im being picky
Unknown User
Unknown User3d ago
Message Not Public
Sign In & Join Server To View
maZ
maZOP3d ago
ah alright, thanks
Unknown User
Unknown User3d ago
Message Not Public
Sign In & Join Server To View
maZ
maZOP3d ago
How do I close this thread btw? or will it auto close
Unknown User
Unknown User3d ago
Message Not Public
Sign In & Join Server To View
d.js toolkit
d.js toolkit3d ago
The thread owner has marked this issue as solved.

Did you find this page helpful?