/// <summary> /// Initiates a public or private channel-based conversation /// <see href="https://api.slack.com/methods/conversations.create" /> /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='token'> /// Authentication token. Requires scope: `conversations:write` /// </param> /// <param name='name'> /// Name of the public or private channel to create /// </param> /// <param name='isPrivate'> /// Create a private channel instead of a public one /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <CreateOKResponseModel> CreateAsync(this IConversations operations, string token = default(string), string name = default(string), bool?isPrivate = default(bool?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CreateWithHttpMessagesAsync(token, name, isPrivate, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }