slack-ruby-client 0.2.1 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f3ede2b9aafcaacd0d2186d80106272f0faa2857
4
- data.tar.gz: 171278a9d042e8c5ef793bebe7b844152bf0f263
3
+ metadata.gz: 2bf6b0db1a59d9c336613fe0c25e943d781e55fb
4
+ data.tar.gz: 2880cb0e09e43f59d09632dad24299b9ea4cb062
5
5
  SHA512:
6
- metadata.gz: 0f6e90d7c8a2242f2ccb912824f9de373f5a0100cac4f9caf543e62b2029fee95ced93948422a3bd8c44e15f455e96ae650606697e1962784748346c03ad840c
7
- data.tar.gz: 8c3506854646e6608207a00fdc9968087378b7e090ec14f7dee0c450368c051dd358c32b66c079c52f6be57149982490f877714537b65ee490fc3ca83fcfa5fa
6
+ metadata.gz: eb17e037a1107ebb93ac331b56f7bfcf2f576ae8377a5ac109745b6cc9b3574e2bb40b7983e24d335f60e10e66adae75d0d2b2a609eb48f89f6ef661ad59f715
7
+ data.tar.gz: 67a0056a3ca5a76350ecc0f997858492f7cc6cffae68f469c4cae8a4f1f2a34c5c8233c61bdc86afdd2195fb8f3cb1e4dc22cfa2d603e94d931862b165a41f34
data/.gitmodules CHANGED
@@ -1,3 +1,3 @@
1
- [submodule "lib/slack/web/api/slack-api-docs"]
2
- path = lib/slack/web/api/slack-api-docs
3
- url = git@github.com:slackhq/slack-api-docs.git
1
+ [submodule "lib/slack/web/api/slack-api-ref"]
2
+ path = lib/slack/web/api/slack-api-ref
3
+ url = git@github.com:dblock/slack-api-ref.git
data/.rubocop.yml CHANGED
@@ -2,5 +2,6 @@ AllCops:
2
2
  Exclude:
3
3
  - vendor/**/*
4
4
  - bin/**/*
5
+ - lib/slack/web/api/slack-api-ref/**/*
5
6
 
6
7
  inherit_from: .rubocop_todo.yml
data/.rubocop_todo.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  # This configuration was generated by `rubocop --auto-gen-config`
2
- # on 2015-07-30 11:21:36 +0200 using RuboCop version 0.32.1.
2
+ # on 2015-09-01 18:02:38 -0400 using RuboCop version 0.32.1.
3
3
  # The point is for the user to remove these configuration records
4
4
  # one by one as the offenses are removed from the code base.
5
5
  # Note that changes in the inspected code, or installation of new
@@ -9,17 +9,17 @@
9
9
  Metrics/AbcSize:
10
10
  Max: 21
11
11
 
12
- # Offense count: 102
12
+ # Offense count: 152
13
13
  # Configuration parameters: AllowURI, URISchemes.
14
14
  Metrics/LineLength:
15
- Max: 153
15
+ Max: 149
16
16
 
17
17
  # Offense count: 3
18
18
  # Configuration parameters: CountComments.
19
19
  Metrics/MethodLength:
20
20
  Max: 19
21
21
 
22
- # Offense count: 32
22
+ # Offense count: 35
23
23
  Style/Documentation:
24
24
  Enabled: false
25
25
 
@@ -28,7 +28,7 @@ Style/Documentation:
28
28
  Style/FileName:
29
29
  Enabled: false
30
30
 
31
- # Offense count: 9
31
+ # Offense count: 10
32
32
  # Configuration parameters: EnforcedStyle, SupportedStyles.
33
33
  Style/MethodName:
34
34
  Enabled: false
data/CHANGELOG.md CHANGED
@@ -1,3 +1,16 @@
1
+ ### 0.3.0 (9/1/2015)
2
+
3
+ * Added `team.info` and `accessLogs` - [@dblock](https://github.com/dblock).
4
+ * Removed obsolete `presence` API - [@dblock](https://github.com/dblock).
5
+ * Added `pins.add`, `list` and `remove` - [@dblock](https://github.com/dblock).
6
+ * Added `users.list#presence` - [@dblock](https://github.com/dblock).
7
+ * Added `groups.info` - [@dblock](https://github.com/dblock).
8
+ * Added `groups.history#inclusive` and `im.history#inclusive` - [@dblock](https://github.com/dblock).
9
+ * Added `files.delete` - [@dblock](https://github.com/dblock).
10
+ * Added `chat.postMessage#as_user` - [@dblock](https://github.com/dblock).
11
+ * Use API reference schema from [github.com/dblock/slack-api-ref](https://github.com/dblock/slack-api-ref) - [@dblock](https://github.com/dblock).
12
+ * Added `reactions.add`, `.list`, `.get` and `.remove` - [@jakedahn](https://github.com/jakedahn)
13
+
1
14
  ### 0.2.1 (8/2/2015)
2
15
 
3
16
  * Set Slack API token via `Slack::RealTime::Client.new(token: 'token')` and `Slack::Web::Client.new(token: 'token')` - [@dblock](https://github.com/dblock).
data/README.md CHANGED
@@ -2,7 +2,7 @@ Slack Ruby Client
2
2
  =================
3
3
 
4
4
  [![Gem Version](https://badge.fury.io/rb/slack-ruby-client.svg)](http://badge.fury.io/rb/slack-ruby-client)
5
- [![Build Status](https://travis-ci.org/dblock/slack-ruby-client.png)](https://travis-ci.org/dblock/slack-ruby-client)
5
+ [![Build Status](https://travis-ci.org/dblock/slack-ruby-client.svg?branch=master)](https://travis-ci.org/dblock/slack-ruby-client)
6
6
 
7
7
  A Ruby client for the Slack [Web](https://api.slack.com/web) and [RealTime Messaging](https://api.slack.com/rtm) APIs.
8
8
 
data/lib/slack/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Slack
2
- VERSION = '0.2.1'
2
+ VERSION = '0.3.0'
3
3
  end
@@ -9,10 +9,12 @@ require 'slack/web/api/endpoints/files'
9
9
  require 'slack/web/api/endpoints/groups'
10
10
  require 'slack/web/api/endpoints/im'
11
11
  require 'slack/web/api/endpoints/oauth'
12
- require 'slack/web/api/endpoints/presence'
12
+ require 'slack/web/api/endpoints/pins'
13
+ require 'slack/web/api/endpoints/reactions'
13
14
  require 'slack/web/api/endpoints/rtm'
14
15
  require 'slack/web/api/endpoints/search'
15
16
  require 'slack/web/api/endpoints/stars'
17
+ require 'slack/web/api/endpoints/team'
16
18
  require 'slack/web/api/endpoints/users'
17
19
 
18
20
  module Slack
@@ -28,10 +30,12 @@ module Slack
28
30
  include Groups
29
31
  include Im
30
32
  include Oauth
31
- include Presence
33
+ include Pins
34
+ include Reactions
32
35
  include Rtm
33
36
  include Search
34
37
  include Stars
38
+ include Team
35
39
  include Users
36
40
  end
37
41
  end
@@ -6,15 +6,14 @@ module Slack
6
6
  module Endpoints
7
7
  module Api
8
8
  #
9
- # Checks API calling code.
9
+ # This method helps you test your calling code.
10
10
  #
11
11
  # @option options [Object] :error
12
- # Error response to return
12
+ # Error response to return.
13
13
  # @option options [Object] :foo
14
- # example property to return
14
+ # example property to return.
15
15
  # @see https://api.slack.com/methods/api.test
16
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/api.test.md
17
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/api.test.json
16
+ # @see https://github.com/dblock/slack-api-ref/blob/master/methods/api.test.json
18
17
  def api_test(options = {})
19
18
  post('api.test', options)
20
19
  end
@@ -6,11 +6,10 @@ module Slack
6
6
  module Endpoints
7
7
  module Auth
8
8
  #
9
- # Checks authentication & identity.
9
+ # This method checks authentication and tells you who you are.
10
10
  #
11
11
  # @see https://api.slack.com/methods/auth.test
12
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/auth.test.md
13
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/auth.test.json
12
+ # @see https://github.com/dblock/slack-api-ref/blob/master/methods/auth.test.json
14
13
  def auth_test(options = {})
15
14
  post('auth.test', options)
16
15
  end
@@ -6,73 +6,70 @@ module Slack
6
6
  module Endpoints
7
7
  module Channels
8
8
  #
9
- # Archives a channel.
9
+ # This method archives a channel.
10
10
  #
11
- # @option options [channel] :channel
12
- # Channel to archive
11
+ # @option options [Object] :channel
12
+ # Channel to archive.
13
13
  # @see https://api.slack.com/methods/channels.archive
14
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/channels.archive.md
15
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/channels.archive.json
14
+ # @see https://github.com/dblock/slack-api-ref/blob/master/methods/channels.archive.json
16
15
  def channels_archive(options = {})
17
16
  throw ArgumentError.new('Required arguments :channel missing') if options[:channel].nil?
18
17
  post('channels.archive', options)
19
18
  end
20
19
 
21
20
  #
22
- # Creates a channel.
21
+ # This method is used to create a channel.
23
22
  #
24
23
  # @option options [Object] :name
25
- # Name of channel to create
24
+ # Name of channel to create.
26
25
  # @see https://api.slack.com/methods/channels.create
27
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/channels.create.md
28
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/channels.create.json
26
+ # @see https://github.com/dblock/slack-api-ref/blob/master/methods/channels.create.json
29
27
  def channels_create(options = {})
30
28
  throw ArgumentError.new('Required arguments :name missing') if options[:name].nil?
31
29
  post('channels.create', options)
32
30
  end
33
31
 
34
32
  #
35
- # Fetches history of messages and events from a channel.
33
+ # This method returns a portion of messages/events from the specified channel.
34
+ # To read the entire history for a channel, call the method with no latest or
35
+ # oldest arguments, and then continue paging using the instructions below.
36
36
  #
37
- # @option options [channel] :channel
37
+ # @option options [Object] :channel
38
38
  # Channel to fetch history for.
39
- # @option options [timestamp] :latest
40
- # Latest message timestamp to include in results.
41
- # @option options [timestamp] :oldest
42
- # Oldest message timestamp to include in results.
43
- # @option options [Object] :count
44
- # Number of messages to return, between 1 and 1000.
39
+ # @option options [Object] :latest
40
+ # End of time range of messages to include in results.
41
+ # @option options [Object] :oldest
42
+ # Start of time range of messages to include in results.
43
+ # @option options [Object] :inclusive
44
+ # Include messages with latest or oldest timestamp in results.
45
45
  # @see https://api.slack.com/methods/channels.history
46
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/channels.history.md
47
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/channels.history.json
46
+ # @see https://github.com/dblock/slack-api-ref/blob/master/methods/channels.history.json
48
47
  def channels_history(options = {})
49
48
  throw ArgumentError.new('Required arguments :channel missing') if options[:channel].nil?
50
49
  post('channels.history', options)
51
50
  end
52
51
 
53
52
  #
54
- # Gets information about a channel.
53
+ # This method returns information about a team channel.
55
54
  #
56
- # @option options [channel] :channel
57
- # Channel to get info on
55
+ # @option options [Object] :channel
56
+ # Channel to get info on.
58
57
  # @see https://api.slack.com/methods/channels.info
59
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/channels.info.md
60
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/channels.info.json
58
+ # @see https://github.com/dblock/slack-api-ref/blob/master/methods/channels.info.json
61
59
  def channels_info(options = {})
62
60
  throw ArgumentError.new('Required arguments :channel missing') if options[:channel].nil?
63
61
  post('channels.info', options)
64
62
  end
65
63
 
66
64
  #
67
- # Invites a user to a channel.
65
+ # This method is used to invite a user to a channel. The calling user must be a member of the channel.
68
66
  #
69
- # @option options [channel] :channel
67
+ # @option options [Object] :channel
70
68
  # Channel to invite user to.
71
- # @option options [user] :user
69
+ # @option options [Object] :user
72
70
  # User to invite to channel.
73
71
  # @see https://api.slack.com/methods/channels.invite
74
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/channels.invite.md
75
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/channels.invite.json
72
+ # @see https://github.com/dblock/slack-api-ref/blob/master/methods/channels.invite.json
76
73
  def channels_invite(options = {})
77
74
  throw ArgumentError.new('Required arguments :channel missing') if options[:channel].nil?
78
75
  throw ArgumentError.new('Required arguments :user missing') if options[:user].nil?
@@ -80,28 +77,27 @@ module Slack
80
77
  end
81
78
 
82
79
  #
83
- # Joins a channel, creating it if needed.
80
+ # This method is used to join a channel. If the channel does not exist, it is
81
+ # created.
84
82
  #
85
83
  # @option options [Object] :name
86
- # Name of channel to join
84
+ # Name of channel to join.
87
85
  # @see https://api.slack.com/methods/channels.join
88
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/channels.join.md
89
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/channels.join.json
86
+ # @see https://github.com/dblock/slack-api-ref/blob/master/methods/channels.join.json
90
87
  def channels_join(options = {})
91
88
  throw ArgumentError.new('Required arguments :name missing') if options[:name].nil?
92
89
  post('channels.join', options)
93
90
  end
94
91
 
95
92
  #
96
- # Removes a user from a channel.
93
+ # This method allows a user to remove another member from a team channel.
97
94
  #
98
- # @option options [channel] :channel
95
+ # @option options [Object] :channel
99
96
  # Channel to remove user from.
100
- # @option options [user] :user
97
+ # @option options [Object] :user
101
98
  # User to remove from channel.
102
99
  # @see https://api.slack.com/methods/channels.kick
103
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/channels.kick.md
104
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/channels.kick.json
100
+ # @see https://github.com/dblock/slack-api-ref/blob/master/methods/channels.kick.json
105
101
  def channels_kick(options = {})
106
102
  throw ArgumentError.new('Required arguments :channel missing') if options[:channel].nil?
107
103
  throw ArgumentError.new('Required arguments :user missing') if options[:user].nil?
@@ -109,40 +105,39 @@ module Slack
109
105
  end
110
106
 
111
107
  #
112
- # Leaves a channel.
108
+ # This method is used to leave a channel.
113
109
  #
114
- # @option options [channel] :channel
115
- # Channel to leave
110
+ # @option options [Object] :channel
111
+ # Channel to leave.
116
112
  # @see https://api.slack.com/methods/channels.leave
117
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/channels.leave.md
118
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/channels.leave.json
113
+ # @see https://github.com/dblock/slack-api-ref/blob/master/methods/channels.leave.json
119
114
  def channels_leave(options = {})
120
115
  throw ArgumentError.new('Required arguments :channel missing') if options[:channel].nil?
121
116
  post('channels.leave', options)
122
117
  end
123
118
 
124
119
  #
125
- # Lists all channels in a Slack team.
120
+ # This method returns a list of all channels in the team. This includes channels the caller is in, channels
121
+ # they are not currently in, and archived channels. The number of (non-deactivated) members in each channel
122
+ # is also returned.
126
123
  #
127
124
  # @option options [Object] :exclude_archived
128
125
  # Don't return archived channels.
129
126
  # @see https://api.slack.com/methods/channels.list
130
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/channels.list.md
131
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/channels.list.json
127
+ # @see https://github.com/dblock/slack-api-ref/blob/master/methods/channels.list.json
132
128
  def channels_list(options = {})
133
129
  post('channels.list', options)
134
130
  end
135
131
 
136
132
  #
137
- # Sets the read cursor in a channel.
133
+ # This method moves the read cursor in a channel.
138
134
  #
139
- # @option options [channel] :channel
135
+ # @option options [Object] :channel
140
136
  # Channel to set reading cursor in.
141
- # @option options [timestamp] :ts
137
+ # @option options [Object] :ts
142
138
  # Timestamp of the most recently seen message.
143
139
  # @see https://api.slack.com/methods/channels.mark
144
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/channels.mark.md
145
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/channels.mark.json
140
+ # @see https://github.com/dblock/slack-api-ref/blob/master/methods/channels.mark.json
146
141
  def channels_mark(options = {})
147
142
  throw ArgumentError.new('Required arguments :channel missing') if options[:channel].nil?
148
143
  throw ArgumentError.new('Required arguments :ts missing') if options[:ts].nil?
@@ -150,15 +145,14 @@ module Slack
150
145
  end
151
146
 
152
147
  #
153
- # Renames a channel.
148
+ # This method renames a team channel.
154
149
  #
155
- # @option options [channel] :channel
156
- # Channel to rename
150
+ # @option options [Object] :channel
151
+ # Channel to rename.
157
152
  # @option options [Object] :name
158
153
  # New name for channel.
159
154
  # @see https://api.slack.com/methods/channels.rename
160
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/channels.rename.md
161
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/channels.rename.json
155
+ # @see https://github.com/dblock/slack-api-ref/blob/master/methods/channels.rename.json
162
156
  def channels_rename(options = {})
163
157
  throw ArgumentError.new('Required arguments :channel missing') if options[:channel].nil?
164
158
  throw ArgumentError.new('Required arguments :name missing') if options[:name].nil?
@@ -166,15 +160,14 @@ module Slack
166
160
  end
167
161
 
168
162
  #
169
- # Sets the purpose for a channel.
163
+ # This method is used to change the purpose of a channel. The calling user must be a member of the channel.
170
164
  #
171
- # @option options [channel] :channel
172
- # Channel to set the purpose of
165
+ # @option options [Object] :channel
166
+ # Channel to set the purpose of.
173
167
  # @option options [Object] :purpose
174
- # The new purpose
168
+ # The new purpose.
175
169
  # @see https://api.slack.com/methods/channels.setPurpose
176
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/channels.setPurpose.md
177
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/channels.setPurpose.json
170
+ # @see https://github.com/dblock/slack-api-ref/blob/master/methods/channels.setPurpose.json
178
171
  def channels_setPurpose(options = {})
179
172
  throw ArgumentError.new('Required arguments :channel missing') if options[:channel].nil?
180
173
  throw ArgumentError.new('Required arguments :purpose missing') if options[:purpose].nil?
@@ -182,15 +175,14 @@ module Slack
182
175
  end
183
176
 
184
177
  #
185
- # Sets the topic for a channel.
178
+ # This method is used to change the topic of a channel. The calling user must be a member of the channel.
186
179
  #
187
- # @option options [channel] :channel
188
- # Channel to set the topic of
180
+ # @option options [Object] :channel
181
+ # Channel to set the topic of.
189
182
  # @option options [Object] :topic
190
- # The new topic
183
+ # The new topic.
191
184
  # @see https://api.slack.com/methods/channels.setTopic
192
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/channels.setTopic.md
193
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/channels.setTopic.json
185
+ # @see https://github.com/dblock/slack-api-ref/blob/master/methods/channels.setTopic.json
194
186
  def channels_setTopic(options = {})
195
187
  throw ArgumentError.new('Required arguments :channel missing') if options[:channel].nil?
196
188
  throw ArgumentError.new('Required arguments :topic missing') if options[:topic].nil?
@@ -198,13 +190,12 @@ module Slack
198
190
  end
199
191
 
200
192
  #
201
- # Unarchives a channel.
193
+ # This method unarchives a channel. The calling user is added to the channel.
202
194
  #
203
- # @option options [channel] :channel
204
- # Channel to unarchive
195
+ # @option options [Object] :channel
196
+ # Channel to unarchive.
205
197
  # @see https://api.slack.com/methods/channels.unarchive
206
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/channels.unarchive.md
207
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/channels.unarchive.json
198
+ # @see https://github.com/dblock/slack-api-ref/blob/master/methods/channels.unarchive.json
208
199
  def channels_unarchive(options = {})
209
200
  throw ArgumentError.new('Required arguments :channel missing') if options[:channel].nil?
210
201
  post('channels.unarchive', options)
@@ -6,15 +6,14 @@ module Slack
6
6
  module Endpoints
7
7
  module Chat
8
8
  #
9
- # Deletes a message.
9
+ # This method deletes a message from a channel.
10
10
  #
11
11
  # @option options [Object] :ts
12
12
  # Timestamp of the message to be deleted.
13
- # @option options [channel] :channel
13
+ # @option options [Object] :channel
14
14
  # Channel containing the message to be deleted.
15
15
  # @see https://api.slack.com/methods/chat.delete
16
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/chat.delete.md
17
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/chat.delete.json
16
+ # @see https://github.com/dblock/slack-api-ref/blob/master/methods/chat.delete.json
18
17
  def chat_delete(options = {})
19
18
  throw ArgumentError.new('Required arguments :ts missing') if options[:ts].nil?
20
19
  throw ArgumentError.new('Required arguments :channel missing') if options[:channel].nil?
@@ -22,14 +21,16 @@ module Slack
22
21
  end
23
22
 
24
23
  #
25
- # Sends a message to a channel.
24
+ # This method posts a message to a public channel, private group, or IM channel.
26
25
  #
27
- # @option options [channel] :channel
28
- # Channel to send message to. Can be a public channel, private group or IM channel. Can be an encoded ID, or a name.
26
+ # @option options [Object] :channel
27
+ # Channel, private group, or IM channel to send message to. Can be an encoded ID, or a name. See below for more details.
29
28
  # @option options [Object] :text
30
29
  # Text of the message to send. See below for an explanation of formatting.
31
30
  # @option options [Object] :username
32
31
  # Name of bot.
32
+ # @option options [Object] :as_user
33
+ # Pass true to post the message as the authed user, instead of as a bot.
33
34
  # @option options [Object] :parse
34
35
  # Change how messages are treated. See below.
35
36
  # @option options [Object] :link_names
@@ -41,12 +42,11 @@ module Slack
41
42
  # @option options [Object] :unfurl_media
42
43
  # Pass false to disable unfurling of media content.
43
44
  # @option options [Object] :icon_url
44
- # URL to an image to use as the icon for this message
45
+ # URL to an image to use as the icon for this message.
45
46
  # @option options [Object] :icon_emoji
46
- # emoji to use as the icon for this message. Overrides `icon_url`.
47
+ # emoji to use as the icon for this message. Overrides icon_url.
47
48
  # @see https://api.slack.com/methods/chat.postMessage
48
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/chat.postMessage.md
49
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/chat.postMessage.json
49
+ # @see https://github.com/dblock/slack-api-ref/blob/master/methods/chat.postMessage.json
50
50
  def chat_postMessage(options = {})
51
51
  throw ArgumentError.new('Required arguments :channel missing') if options[:channel].nil?
52
52
  throw ArgumentError.new('Required arguments :text missing') if options[:text].nil?
@@ -54,17 +54,16 @@ module Slack
54
54
  end
55
55
 
56
56
  #
57
- # Updates a message.
57
+ # This method updates a message in a channel.
58
58
  #
59
59
  # @option options [Object] :ts
60
60
  # Timestamp of the message to be updated.
61
- # @option options [channel] :channel
61
+ # @option options [Object] :channel
62
62
  # Channel containing the message to be updated.
63
63
  # @option options [Object] :text
64
- # New text for the message, using the [default formatting rules](/docs/formatting).
64
+ # New text for the message, using the default formatting rules.
65
65
  # @see https://api.slack.com/methods/chat.update
66
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/chat.update.md
67
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/chat.update.json
66
+ # @see https://github.com/dblock/slack-api-ref/blob/master/methods/chat.update.json
68
67
  def chat_update(options = {})
69
68
  throw ArgumentError.new('Required arguments :ts missing') if options[:ts].nil?
70
69
  throw ArgumentError.new('Required arguments :channel missing') if options[:channel].nil?