# channelMessage

The `channelMessage` event is triggered whenever the server sends a message to a channel.

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

```javascript
bot.on('channelMessage', (data) => {
    // Your Code Here
});
```

#### Parameters

* **data.sender** _(string)_ – The sender of the message.
* **data.channel** _(string)_ – The channel where the message was sent.
* **data.content** _(string)_ – The content of the message.
* **data.raw** _(string)_ – The raw message data from the server.
