/// <summary> /// Lists direct message channels for the calling user. /// <see href="https://api.slack.com/methods/im.list" /> /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='cursor'> /// Paginate through collections of data by setting the `cursor` parameter to a /// `next_cursor` attribute returned by a previous request's /// `response_metadata`. Default value fetches the first "page" of the /// collection. See [pagination](/docs/pagination) for more detail. /// </param> /// <param name='token'> /// Authentication token. Requires scope: `im:read` /// </param> /// <param name='limit'> /// The maximum number of items to return. Fewer than the requested number of /// items may be returned, even if the end of the users list hasn't been /// reached. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <ListOKResponseModelModelModelModelModelModelModel> ListAsync(this IIm operations, string cursor = default(string), string token = default(string), int?limit = default(int?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListWithHttpMessagesAsync(cursor, token, limit, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }