You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -178,7 +178,7 @@ This library provides a helper method `files_upload_v2` that wraps the three sep
178
178
```ruby
179
179
client.files_upload_v2(
180
180
# required options
181
-
channels:'C000000,C000001', #comma delimited channel ids, only one channel is required
181
+
channels:['C000000', 'C000001'], # channel IDs, one is required (:channel_id, :channel, or :channels are all supported)
182
182
filename:'results.pdf', # this is used for the file title, unless a :title option is provided
183
183
contents:File.read('/users/me/results.pdf'), # the string contents of the file
184
184
@@ -190,7 +190,7 @@ client.files_upload_v2(
190
190
)
191
191
```
192
192
193
-
You can use all of channel ID, an array of channel IDs, or a channel name (prefixed with `#`) in `files_upload_v2`. Lookup by name is not supported by the Slack API and this method called invokes `conversations_list` in order to locate the channel ID. This invocation can have a cost if you have many Slack channels and is only recommended when you intend to list channels anyway.
193
+
You can use a channel ID passed as `channel_id`, a single channel as `channel`, an array of channel IDs as `channels`, or a channel name or names (prefixed with `#`) in `files_upload_v2`. Lookup by name is not supported by the Slack API and this method called invokes `conversations_list` in order to locate the channel ID. This invocation can have a cost if you have many Slack channels and is only recommended when you intend to list channels anyway.
194
194
195
195
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).
0 commit comments