/// <summary> /// Retrieve a thread of messages posted to a direct message conversation /// <see href="https://api.slack.com/methods/im.replies" /> /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='threadTs'> /// Unique identifier of a thread's parent message /// </param> /// <param name='token'> /// Authentication token. Requires scope: `im:history` /// </param> /// <param name='channel'> /// Direct message channel to fetch thread from /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <RepliesOKResponse> RepliesAsync(this IIm operations, string threadTs = default(string), string token = default(string), string channel = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.RepliesWithHttpMessagesAsync(threadTs, token, channel, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }