/// <summary> /// Closes a direct message or multi-person direct message. /// <see href="https://api.slack.com/methods/conversations.close" /> /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='token'> /// Authentication token. Requires scope: `conversations:write` /// </param> /// <param name='channel'> /// Conversation to close. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <CloseOKResponse> CloseAsync(this IConversations operations, string token = default(string), string channel = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CloseWithHttpMessagesAsync(token, channel, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }