# Viewer

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

| ban(reason)                                                                                                         |
| ------------------------------------------------------------------------------------------------------------------- |
| Ban this Viewer from Channel                                                                                        |
| <p></p><ul><li><strong>Parameters</strong></li><li><p></p><ul><li>reason? - ban reason (string)</li></ul></li></ul> |

* Returns: Promise<[Viewer](https://test845a.gitbook.io/twitch-tvjs/classes/viewer)>

| timeout(time)                                                                                                                       |
| ----------------------------------------------------------------------------------------------------------------------------------- |
| Timeout viewer from channel                                                                                                         |
| <p></p><ul><li><strong>Parameters</strong></li><li><p></p><ul><li>time? - timeout time in Milliseconds (number)</li></ul></li></ul> |

* Returns: Promise<[Viewer](https://test845a.gitbook.io/twitch-tvjs/classes/viewer)>

## Properties

| Name       | Type                                                               | Description                                        |
| ---------- | ------------------------------------------------------------------ | -------------------------------------------------- |
| username   | string                                                             | Viewer display name                                |
| id         | string                                                             | Viewer id                                          |
| mod        | boolean                                                            | Whether the viewer is mod                          |
| color      | ?string                                                            | Viewers channel color                              |
| badges     | string                                                             | Viewers chat badges                                |
| subscriber | boolean                                                            | Whether the viewer is a subscriber on this channel |
| channel    | [Channel](https://test845a.gitbook.io/twitch-tvjs/classes/channel) | The channel from where the viewer was reserved     |
| client     | [Client](https://test845a.gitbook.io/twitch-tvjs/classes/client)   | The client that instantiated this                  |
