# dropdownSelected

```javascript
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

```javascript
// 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: [...]
})
```

{% hint style="info" %}
Please note, that you can send just one Dropdown for one message
{% endhint %}

#### callback.edit()

> Edit your responded message ( see reply() )

#### callback.delete()

> Delete the responded message ( reply() / callback.edit() )

### Return

{% hint style="danger" %}
The error message from Discord
{% endhint %}

{% hint style="success" %}
{message: "Ok"}
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://flamex.gitbook.io/dsc-utils/events/dropdownselected.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
