> For the complete documentation index, see [llms.txt](https://bmsvieira.gitbook.io/nova-irc/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bmsvieira.gitbook.io/nova-irc/event-listeners/directmessage.md).

# directMessage

The `directMessage` event is triggered whenever the server sends a private message directed to the bot.

&#x20;This works similarly to the `message`event but is only emitted for direct messages.

```javascript
bot.on('directMessage', (data) => {
    // Your code here
});
```

#### Parameters

* **data.sender** *(string)* – The sender of the private message.
* **data.content** *(string)* – The content of the private message.
* **data.raw** *(string)* – The raw message data from the server.
