Skip to content

Commit

Permalink
web-api: Add deprecation JSdoc to files.upload method (#1773)
Browse files Browse the repository at this point in the history
  • Loading branch information
filmaj authored Apr 10, 2024
1 parent 2649398 commit fec4895
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/web-api/src/methods.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1630,6 +1630,7 @@ export abstract class Methods extends EventEmitter<WebClientEvent> {
bindApiCall<FilesSharedPublicURLArguments, FilesSharedPublicURLResponse>(this, 'files.sharedPublicURL'),
/**
* @description Uploads or creates a file.
* @deprecated Use `uploadV2` instead. See {@link https://api.slack.com/changelog/2024-04-a-better-way-to-upload-files-is-here-to-stay our post on retiring `files.upload`}.
* @see {@link https://api.slack.com/methods/files.upload `files.upload` API reference}.
*/
upload: bindApiCall<FilesUploadArguments, FilesUploadResponse>(this, 'files.upload'),
Expand Down

0 comments on commit fec4895

Please sign in to comment.