/// <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> public static ListOKResponseModelModelModelModelModelModelModel List(this IIm operations, string cursor = default(string), string token = default(string), int?limit = default(int?)) { return(operations.ListAsync(cursor, token, limit).GetAwaiter().GetResult()); }