listChannels

Lists the channels accessible by the current teammate.

function listChannels(paginationToken?: PaginationToken, cancelToken?: CancelToken): Promise<PaginatedResults<Channel>>

Parameters

ParameterTypeDescription
paginationTokenPaginationTokenToken of the requested page. If omitted, will return the first page of results.
cancelTokenCancelToken (optional)Token to cancel the request.

Return value

The function returns a promise that resolves with a paginated list of channels.

PropertyTypeDescription
nextPageTokenPaginationToken (optional)Token to access the next page of results, if any.
resultsArray of ChannelList of channels.