/// <summary> /// Sets the topic for a conversation. /// <see href="https://api.slack.com/methods/conversations.setTopic" /> /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='token'> /// Authentication token. Requires scope: `conversations:write` /// </param> /// <param name='topic'> /// The new topic string. Does not support formatting or linkification. /// </param> /// <param name='channel'> /// Conversation to set the topic of /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <SetTopicOKResponseModel> SetTopicAsync(this IConversations operations, string token = default(string), string topic = default(string), string channel = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.SetTopicWithHttpMessagesAsync(token, topic, channel, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }