Skip to content

Commit

Permalink
web-api: Add deprecation JSdoc to files.upload method.
Browse files Browse the repository at this point in the history
  • Loading branch information
Filip Maj committed Apr 10, 2024
1 parent 2649398 commit a05e2a8
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 a05e2a8

Please sign in to comment.