# Channel

## Methods <a href="#methods" id="methods"></a>

| send(content \| { content: string }) |
| ------------------------------------ |
| Message that channel                 |

* **Parameters**
* * content - message content (string)
* Returns: Promise<[Message](https://test845a.gitbook.io/twitch-tvjs/classes/message)>

| leave()        |
| -------------- |
| leaves channel |

| unban(username )                  |
| --------------------------------- |
| Unbans a viewer from this channel |

* **Parameters**
* * username - Viewer being unban for this channel (string)
* Returns: Promise\<void>

## Properties

| Name       | Type                                                                                                                                          | Description                               |
| ---------- | --------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------- |
| name       | string                                                                                                                                        | channel name                              |
| id         | string                                                                                                                                        | channel id                                |
| moderators | [Storage](https://test845a.gitbook.io/twitch-tvjs/classes/storage)\<string, [Viewer](https://test845a.gitbook.io/twitch-tvjs/classes/viewer)> | Channel moderators                        |
| chatType   | [ChatTypes](https://test845a.gitbook.io/twitch-tvjs/typedefs/chattypes)                                                                       | Type of chat                              |
| subs       | boolean                                                                                                                                       | chat subs only mode                       |
| r9k        | boolean                                                                                                                                       | if message characters of 9 must be unique |
| parseName  | string                                                                                                                                        | Hash sliced name                          |
