/// <summary> /// Sets the read cursor in a channel. /// <see href="https://api.slack.com/methods/channels.mark" /> /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='token'> /// Authentication token. Requires scope: `channels:write` /// </param> /// <param name='ts'> /// Timestamp of the most recently seen message. /// </param> /// <param name='channel'> /// Channel to set reading cursor in. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <MarkOKResponse> MarkAsync(this IChannels operations, string token = default(string), string ts = default(string), string channel = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.MarkWithHttpMessagesAsync(token, ts, channel, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }