Skip to content

Commit 1148ed4

Browse files
committed
rework readme
1 parent 958db8f commit 1148ed4

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

README.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,6 @@ general_channel = channels.detect { |c| c.name == 'general' }
171171

172172
##### Upload a File
173173

174-
###### New Method
175-
176174
Upload files with [sequenced API calls](https://api.slack.com/messaging/files#uploading_files).
177175

178176
This library provides a helper method `files_upload_v2` that wraps the three separate API calls.
@@ -192,8 +190,7 @@ client.files_upload_v2(
192190
thread_ts: '1738331487.481469' # specifies a thread to add this file to
193191
)
194192
```
195-
196-
###### Legacy Method
193+
Note: This library includes a `files_upload` method that uses a deprecated endpoint `files.upload` that will [no longer be supported on 3/11/2025](https://api.slack.com/methods/files.upload#markdown).
197194

198195
```ruby
199196
client.files_upload(
@@ -206,8 +203,6 @@ client.files_upload(
206203
)
207204
```
208205

209-
The client.files_upload uses a deprecated endpoint `files.upload` that will [no longer be supported on 3/11/2025](https://api.slack.com/methods/files.upload#markdown).
210-
211206
##### Get Channel Info
212207

213208
You can use a channel ID or name (prefixed with `#`) in all functions that take a `:channel` argument. Lookup by name is not supported by the Slack API and the `channels_id` method called invokes `conversations_list` in order to locate the channel ID. This invocation can have a cost if you have many Slack channels. In this scenario, we encourage you to use channel id.

0 commit comments

Comments
 (0)