> For the complete documentation index, see [llms.txt](https://flamex.gitbook.io/dsc-utils/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://flamex.gitbook.io/dsc-utils/events/commandexecuted.md).

# commandExecuted

```javascript
client.on("commandExecuted", cmd => {
    console.log(cmd)

    // Source...
})
```

#### name

> The name of the command

#### guild

> The guild object where the command was used

#### channel

> The channel object where the command was used

#### member

> The object of the guild member who used the command

#### interaction

> The whole interaction that Discord provides

#### args

> The used command options with the value

#### 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 %}
