# Receiving & Handling the Event

Send an [Interaction Response](https://discord.com/developers/docs/interactions/slash-commands#interaction-interaction-response) object

{% hint style="info" %}
`interaction`is an [Interaction object](https://discord.com/developers/docs/interactions/slash-commands#interaction)
{% endhint %}

{% tabs %}
{% tab title="Receiving the Event (bare-bones)" %}
{% code title="bot.js" %}

```javascript
client.ws.on('INTERACTION_CREATE', async interaction => {
  // do stuff and respond here
})
```

{% endcode %}
{% endtab %}

{% tab title="Receiving and Responding to the Event" %}
{% code title="bot.js" %}

```javascript
client.ws.on('INTERACTION_CREATE', async interaction => {
        //Get our command name and convert it to lowercase
        const command = interaction.data.name.toLowerCase();
        //Get any arguments sent with our interaction
        const args = interaction.data.options;
        
        if (command === 'help') {
                // Here you could do anything: Respond, call functions, etc.
                client.api.interactions(interaction.id, interaction.token).callback.post({
                        data: {
                            type: 4,
                            data: {
                                //Replies to the message sent with the interaction
                                content: "Here to help, anytime."
                            }
                        }
                })
        }
}
```

{% endcode %}
{% endtab %}
{% endtabs %}
