/// <summary> /// Sets the purpose for a conversation. /// <see href="https://api.slack.com/methods/conversations.setPurpose" /> /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='token'> /// Authentication token. Requires scope: `conversations:write` /// </param> /// <param name='purpose'> /// A new, specialer purpose /// </param> /// <param name='channel'> /// Conversation to set the purpose of /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <SetPurposeOKResponseModel> SetPurposeAsync(this IConversations operations, string token = default(string), string purpose = default(string), string channel = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.SetPurposeWithHttpMessagesAsync(token, purpose, channel, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }