Lists the channels accessible by the current teammate.
function listChannels(paginationToken?: PaginationToken, cancelToken?: CancelToken): Promise<PaginatedResults<Channel>>
Parameters
Parameter | Type | Description |
---|---|---|
| Token of the requested page. If omitted, will return the first page of results. | |
| CancelToken (optional) | Token to cancel the request. |
Return value
The function returns a promise that resolves with a paginated list of channels.
Property | Type | Description |
---|---|---|
| PaginationToken (optional) | Token to access the next page of results, if any. |
| Array of Channel | List of channels. |