Skip to content

Commit

Permalink
Reordering GetUploadUrlExternal's params to match the interface
Browse files Browse the repository at this point in the history
Resolves #221
  • Loading branch information
soxtoby committed Dec 11, 2024
1 parent ea29ae6 commit 049d6ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SlackNet/WebApi/FilesApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ public async Task<IList<ExternalFileReference>> Upload(IEnumerable<FileUpload> f
return new ExternalFileReference { Id = uploadUrlResponse.FileId, Title = file.Title };
})).ConfigureAwait(false);

return await CompleteUploadExternal(fileReferences, channelId, threadTs, initialComment, cancellationToken).ConfigureAwait(false);
return await CompleteUploadExternal(fileReferences, channelId, initialComment, threadTs, cancellationToken).ConfigureAwait(false);
}

public Task<UploadUrlExternalResponse> GetUploadUrlExternal(
Expand All @@ -419,8 +419,8 @@ public Task<UploadUrlExternalResponse> GetUploadUrlExternal(
public async Task<IList<ExternalFileReference>> CompleteUploadExternal(
IEnumerable<ExternalFileReference> files,
string channelId = null,
string threadTs = null,
string initialComment = null,
string threadTs = null,
CancellationToken cancellationToken = default
) =>
(await client.Post<CompleteUploadExternalResponse>("files.completeUploadExternal", new Args
Expand Down

0 comments on commit 049d6ab

Please sign in to comment.