dropdownSelected
Run the code when a user selects a dropdown value
client.on("commandExecuted", cmd => {
console.log(cmd)
// Source...
})
id
The id of the dropdown
guild
The guild object where the selection was made
channel
The channel object where the selection was made
member
The object of the guild member who selected the value(s)
interaction
The whole interaction that Discord provides
values
The selected value(s)
think()
Let the bot thinking
reply()
Reply to the interaction with a string, MessageEmbed or components
// Send a text
cmd.reply("Hello world!")
// Send an embed
cmd.reply(myEmbed)
// Send a text and an embed
cmd.reply({
content: "Hello world!",
embeds: [myEmbed] // embed: myEmbed
})
// Send a text, and embed and components
cmd.reply({
content: "Hello world!",
embed: myEmbed,
components: [...]
})
callback.edit()
Edit your responded message ( see reply() )
callback.delete()
Delete the responded message ( reply() / callback.edit() )
Return
The error message from Discord
{message: "Ok"}
Last updated
Was this helpful?