コード例 #1
0
 /// <summary>
 /// Renames a channel.
 /// <see href="https://api.slack.com/methods/channels.rename" />
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='token'>
 /// Authentication token. Requires scope: `channels:write`
 /// </param>
 /// <param name='validate'>
 /// Whether to return errors on invalid channel name instead of modifying it to
 /// meet the specified criteria.
 /// </param>
 /// <param name='name'>
 /// New name for channel.
 /// </param>
 /// <param name='channel'>
 /// Channel to rename
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <RenameOKResponse> RenameAsync(this IChannels operations, string token = default(string), bool?validate = default(bool?), string name = default(string), string channel = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.RenameWithHttpMessagesAsync(token, validate, name, channel, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }