How do I use a text input select menu in DJS?

An example would be a search menu. What do I do to show a string input box using MessageSelectMenus with type 3? I've read the docs and have gotten many errors and I don't understand the need for options if the user can type whatever they want?
18 Replies
Unknown User
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
monbrey
monbrey•3y ago
They cant? Select menus have predetermined options, you cant type in them at all If you want a slash command option with preset choices, you set them
d.js docs
d.js docs•3y ago
guide Slash Commands: Choices read more
Soviet Pancakes
Soviet PancakesOP•3y ago
Wait the docs were very fuzzy there I thought they meant you could type an input is there a way to type in your string though? oh also in that guide it was talking about SlashCommandBuilders, and i meant MessageSelectMenus instead, if you didn't understand 😬
Unknown User
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
monbrey
monbrey•3y ago
Yeah select menus have no ability to type into Theyre just selecting So I dont think its me that didnt understand things
Soviet Pancakes
Soviet PancakesOP•3y ago
I'm back with a new question about Modals: If I do interaction.showModal after the bot replies with "the application did not respond" it errors and I'm wondering how I would show the modal and reply to the command with embeds at the same time?
monbrey
monbrey•3y ago
Send them in response to the modal?
Soviet Pancakes
Soviet PancakesOP•3y ago
Hmm I wanted a system that sends and embed with a menuselect and when you select search and it pops up a modal to search for something
monbrey
monbrey•3y ago
Thats fine Show the modal in response to the select menu interaction then
Soviet Pancakes
Soviet PancakesOP•3y ago
... how do i do that because it either tells me that the interaction has been replied to "interaction.reply({embeds:[embed],components:[row]})" or unknown interaction when i use "interaction.channel.send(same parameters)"
monbrey
monbrey•3y ago
What are your replies currently and how are you listening to the select menu?
Soviet Pancakes
Soviet PancakesOP•3y ago
message component listener and right now im using interaction.channel.send and not interaction.reply
Unknown User
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Soviet Pancakes
Soviet PancakesOP•3y ago
i know... also i had this server muted so i dont get notifications here often But if i respond with an embed, then try using interaction.showModal, I get an error saying I already sent a response. How do I get both to work with each other?
Squid
Squid•3y ago
The showModal must be your initial interaction acknowledgment, so you can show the modal, and then followUp with the embed message
Soviet Pancakes
Soviet PancakesOP•3y ago
but i wanna show the embed first
monbrey
monbrey•3y ago
How/why That doesnt make sense, the modal is going to cover it They wont see it
Want results from more Discord servers?
Add your server