示例#1
0
 /// <summary>
 /// Edit an existing file comment.
 /// <see href="https://api.slack.com/methods/files.comments.edit" />
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='token'>
 /// Authentication token. Requires scope: `files:write:user`
 /// </param>
 /// <param name='comment'>
 /// Text of the comment to edit.
 /// </param>
 /// <param name='id'>
 /// The comment to edit.
 /// </param>
 /// <param name='file'>
 /// File containing the comment to edit.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <EditOKResponse> EditAsync(this IFiles operations, string token = default(string), string comment = default(string), string id = default(string), string file = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.EditWithHttpMessagesAsync(token, comment, id, file, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }