/// <summary> /// Renames a conversation. /// <see href="https://api.slack.com/methods/conversations.rename" /> /// </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'> /// New name for conversation. /// </param> /// <param name='channel'> /// ID of conversation to rename /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <RenameOKResponseModel> RenameAsync(this IConversations operations, string token = default(string), string name = default(string), string channel = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.RenameWithHttpMessagesAsync(token, name, channel, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }