Esempio n. 1
0
 /// <summary>
 /// Close a direct message channel.
 /// <see href="https://api.slack.com/methods/im.close" />
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='token'>
 /// Authentication token. Requires scope: `im:write`
 /// </param>
 /// <param name='channel'>
 /// Direct message channel to close.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <CloseOKResponseModel> CloseAsync(this IIm operations, string token = default(string), string channel = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.CloseWithHttpMessagesAsync(token, channel, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }