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)
})

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

Last updated