Dropdown field selected

The last step of our walkthrough is the get the selected value of the dropdown

client.on("dropdownSelected", dropdown => {
    console.log(dropdown)

    // Response to the dropdown selection with the selected value
    dropdown.reply(You selected ${dropdown.values.map(e => `\`${e}\``).join(" ")}`) // send the selected value(s)
})

🎉 And everything is done 🎉 Now you sended each existing message component for the Discord HTTP api. If you have any problems or issues, feel free to create an issue on github. Otherwise fell free to reach me out via Discord!

Last updated