docs: update live chat examples

This commit is contained in:
LuanRT
2022-08-01 15:55:27 -03:00
parent daaba3745e
commit 3cdaab8b7a
3 changed files with 86 additions and 66 deletions

View File

@@ -34,21 +34,21 @@ Live Chat's EventEmitter.
Arguments:
| Type | Description |
| --- | --- |
| `object` | Initial chat data, actions, info, etc. |
| `LiveChatContinuation` | Initial chat data, actions, info, etc. |
- `chat-update`
Arguments:
| Type | Description |
| --- | --- |
| `object` | Chat Action |
| `ChatAction` | Chat Action |
- `metadata-update`
Arguments:
| Type | Description |
| --- | --- |
| `object` | LiveStream Metadata |
| `LiveMetadata` | LiveStream Metadata |
<a name="start"></a>
### start()
@@ -66,7 +66,7 @@ Sends a message.
| --- | --- | --- |
| text | `string` | Message content |
**Returns:** `Promise.<object>`
**Returns:** `Promise<ObservedArray<AddChatItemAction>>`
## Example
See [`index.js`]('./index.js').