Skip to content

Commit 435767e

Browse files
committed
Replace deprecated methods in README.
1 parent 624b34e commit 435767e

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
### 0.16.1 (Next)
1+
### 0.17.0 (Next)
22

3+
* [#370](https://github.com/slack-ruby/slack-ruby-client/pull/370): Removed deprecated `im_`, `mpim_`, `channels_`, and `groups_` methods - [@dblock](https://github.com/dblock).
34
* [#368](https://github.com/slack-ruby/slack-ruby-client/pull/368): Removed `admin_conversations_whitelist` and `admin_conversations_disconnectShared` - [@dblock](https://github.com/dblock).
45
* [#359](https://github.com/slack-ruby/slack-ruby-client/pull/359): Handle non-JSON 500 errors - [@agrobbin](https://github.com/agrobbin).
56
* [#360](https://github.com/slack-ruby/slack-ruby-client/pull/360): Remove faye-websocket from the concurrency detection error message - [@dblock](https://github.com/dblock).

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,10 @@ See a fully working example in [examples/hi_web](examples/hi_web/hi.rb).
150150

151151
##### List Channels
152152

153-
List channels with [channels_list](https://api.slack.com/methods/channels.list).
153+
List channels with [conversations_list](https://api.slack.com/methods/conversations.list).
154154

155155
```ruby
156-
channels = client.channels_list.channels
156+
channels = client.conversations_list.channels
157157

158158
general_channel = channels.detect { |c| c.name == 'general' }
159159
```
@@ -175,14 +175,14 @@ client.files_upload(
175175

176176
##### Get Channel Info
177177

178-
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 `channels_list` in order to locate the channel ID.
178+
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.
179179

180180
```ruby
181-
client.channels_info(channel: 'C04KB5X4D') # calls channels_info
181+
client.conversations_info(channel: 'C04KB5X4D') # calls conversations_info
182182
```
183183

184184
```ruby
185-
client.channels_info(channel: '#general') # calls channels_list followed by channels_info
185+
client.conversations_info(channel: '#general') # calls conversations_list followed by conversations_info
186186
```
187187

188188
##### Get User Info
@@ -243,7 +243,7 @@ adapter | Optional HTTP adapter to use, defaults to `Faraday.default
243243
You can also pass request options, including `timeout` and `open_timeout` into individual calls.
244244

245245
```ruby
246-
client.channels_list(request: { timeout: 180 })
246+
client.conversations_list(request: { timeout: 180 })
247247
```
248248

249249
You can also control what proxy options are used by modifying the `http_proxy` environment variable per [Net::HTTP's documentation](https://docs.ruby-lang.org/en/2.0.0/Net/HTTP.html#class-Net::HTTP-label-Proxies).

lib/slack/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# frozen_string_literal: true
22
module Slack
3-
VERSION = '0.16.1'
3+
VERSION = '0.17.0'
44
end

0 commit comments

Comments
 (0)