slack-ruby-client 0.14.1 → 0.14.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.rubocop_todo.yml +15 -4
- data/CHANGELOG.md +7 -0
- data/README.md +8 -1
- data/Rakefile +1 -1
- data/bin/commands.rb +1 -0
- data/bin/commands/api.rb +2 -2
- data/bin/commands/apps.rb +2 -2
- data/bin/commands/apps_permissions.rb +4 -4
- data/bin/commands/apps_permissions_resources.rb +2 -2
- data/bin/commands/apps_permissions_scopes.rb +2 -2
- data/bin/commands/apps_permissions_users.rb +4 -4
- data/bin/commands/auth.rb +4 -4
- data/bin/commands/bots.rb +2 -2
- data/bin/commands/channels.rb +32 -31
- data/bin/commands/chat.rb +48 -17
- data/bin/commands/chat_scheduledMessages.rb +17 -0
- data/bin/commands/conversations.rb +35 -35
- data/bin/commands/dialog.rb +2 -2
- data/bin/commands/dnd.rb +9 -9
- data/bin/commands/emoji.rb +2 -2
- data/bin/commands/files.rb +14 -25
- data/bin/commands/files_comments.rb +2 -23
- data/bin/commands/groups.rb +33 -33
- data/bin/commands/im.rb +13 -13
- data/bin/commands/migration.rb +2 -2
- data/bin/commands/mpim.rb +11 -11
- data/bin/commands/oauth.rb +4 -4
- data/bin/commands/pins.rb +6 -6
- data/bin/commands/reactions.rb +8 -8
- data/bin/commands/reminders.rb +10 -10
- data/bin/commands/rtm.rb +4 -4
- data/bin/commands/search.rb +7 -7
- data/bin/commands/stars.rb +6 -6
- data/bin/commands/team.rb +8 -8
- data/bin/commands/team_profile.rb +2 -2
- data/bin/commands/usergroups.rb +11 -11
- data/bin/commands/usergroups_users.rb +4 -4
- data/bin/commands/users.rb +21 -22
- data/bin/commands/users_profile.rb +4 -4
- data/lib/slack/events/request.rb +9 -5
- data/lib/slack/real_time/client.rb +23 -6
- data/lib/slack/real_time/concurrency/async.rb +55 -23
- data/lib/slack/real_time/concurrency/celluloid.rb +0 -1
- data/lib/slack/real_time/concurrency/eventmachine.rb +0 -5
- data/lib/slack/real_time/socket.rb +16 -9
- data/lib/slack/version.rb +1 -1
- data/lib/slack/web/api/endpoints.rb +2 -0
- data/lib/slack/web/api/endpoints/api.rb +1 -1
- data/lib/slack/web/api/endpoints/apps.rb +1 -1
- data/lib/slack/web/api/endpoints/apps_permissions.rb +2 -2
- data/lib/slack/web/api/endpoints/apps_permissions_resources.rb +1 -1
- data/lib/slack/web/api/endpoints/apps_permissions_scopes.rb +1 -1
- data/lib/slack/web/api/endpoints/apps_permissions_users.rb +2 -2
- data/lib/slack/web/api/endpoints/auth.rb +2 -2
- data/lib/slack/web/api/endpoints/bots.rb +1 -1
- data/lib/slack/web/api/endpoints/channels.rb +18 -15
- data/lib/slack/web/api/endpoints/chat.rb +63 -9
- data/lib/slack/web/api/endpoints/chat_scheduledMessages.rb +37 -0
- data/lib/slack/web/api/endpoints/conversations.rb +17 -17
- data/lib/slack/web/api/endpoints/dialog.rb +1 -1
- data/lib/slack/web/api/endpoints/dnd.rb +4 -4
- data/lib/slack/web/api/endpoints/emoji.rb +1 -1
- data/lib/slack/web/api/endpoints/files.rb +7 -18
- data/lib/slack/web/api/endpoints/files_comments.rb +1 -34
- data/lib/slack/web/api/endpoints/groups.rb +18 -16
- data/lib/slack/web/api/endpoints/im.rb +8 -6
- data/lib/slack/web/api/endpoints/migration.rb +1 -1
- data/lib/slack/web/api/endpoints/mpim.rb +7 -5
- data/lib/slack/web/api/endpoints/oauth.rb +2 -2
- data/lib/slack/web/api/endpoints/pins.rb +5 -3
- data/lib/slack/web/api/endpoints/reactions.rb +6 -4
- data/lib/slack/web/api/endpoints/reminders.rb +5 -5
- data/lib/slack/web/api/endpoints/rtm.rb +2 -2
- data/lib/slack/web/api/endpoints/search.rb +3 -3
- data/lib/slack/web/api/endpoints/stars.rb +5 -3
- data/lib/slack/web/api/endpoints/team.rb +5 -4
- data/lib/slack/web/api/endpoints/team_profile.rb +1 -1
- data/lib/slack/web/api/endpoints/usergroups.rb +5 -5
- data/lib/slack/web/api/endpoints/usergroups_users.rb +2 -2
- data/lib/slack/web/api/endpoints/users.rb +12 -12
- data/lib/slack/web/api/endpoints/users_profile.rb +2 -2
- data/spec/integration/integration_spec.rb +43 -36
- data/spec/slack/events/request_spec.rb +29 -1
- data/spec/slack/real_time/concurrency/celluloid_spec.rb +5 -0
- data/spec/slack/real_time/concurrency/eventmachine_spec.rb +1 -0
- data/spec/slack/web/api/endpoints/chat_scheduledMessages_spec.rb +7 -0
- data/spec/slack/web/api/endpoints/files_comments_spec.rb +0 -19
- data/spec/spec_helper.rb +5 -0
- metadata +6 -2
@@ -6,7 +6,7 @@ module Slack
|
|
6
6
|
module Endpoints
|
7
7
|
module Dialog
|
8
8
|
#
|
9
|
-
# Open a dialog with a user
|
9
|
+
# Open a dialog with a user by exchanging a trigger_id received from another interaction. See the dialogs documentation to learn how to obtain triggers define form elements.
|
10
10
|
#
|
11
11
|
# @option options [Object] :dialog
|
12
12
|
# The dialog definition. This must be a JSON-encoded string.
|
@@ -6,7 +6,7 @@ module Slack
|
|
6
6
|
module Endpoints
|
7
7
|
module Dnd
|
8
8
|
#
|
9
|
-
# Ends the
|
9
|
+
# Ends the user's currently scheduled Do Not Disturb session immediately.
|
10
10
|
#
|
11
11
|
# @see https://api.slack.com/methods/dnd.endDnd
|
12
12
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/dnd/dnd.endDnd.json
|
@@ -24,7 +24,7 @@ module Slack
|
|
24
24
|
end
|
25
25
|
|
26
26
|
#
|
27
|
-
#
|
27
|
+
# Provides information about a user's current Do Not Disturb settings.
|
28
28
|
#
|
29
29
|
# @option options [user] :user
|
30
30
|
# User to fetch status for (defaults to current user).
|
@@ -36,7 +36,7 @@ module Slack
|
|
36
36
|
end
|
37
37
|
|
38
38
|
#
|
39
|
-
#
|
39
|
+
# Adjusts the snooze duration for a user's Do Not Disturb settings. If a snooze session is not already active for the user, invoking this method will begin one for the specified duration.
|
40
40
|
#
|
41
41
|
# @option options [Object] :num_minutes
|
42
42
|
# Number of minutes, from now, to snooze until.
|
@@ -48,7 +48,7 @@ module Slack
|
|
48
48
|
end
|
49
49
|
|
50
50
|
#
|
51
|
-
#
|
51
|
+
# Provides information about the current Do Not Disturb settings for a list of users in a Slack team.
|
52
52
|
#
|
53
53
|
# @option options [Object] :users
|
54
54
|
# Comma-separated list of users to fetch Do Not Disturb status for.
|
@@ -6,7 +6,7 @@ module Slack
|
|
6
6
|
module Endpoints
|
7
7
|
module Emoji
|
8
8
|
#
|
9
|
-
#
|
9
|
+
# This method lists the custom emoji for a team.
|
10
10
|
#
|
11
11
|
# @see https://api.slack.com/methods/emoji.list
|
12
12
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/emoji/emoji.list.json
|
@@ -6,7 +6,7 @@ module Slack
|
|
6
6
|
module Endpoints
|
7
7
|
module Files
|
8
8
|
#
|
9
|
-
#
|
9
|
+
# A new file commenting experience arrived on July 23, 2018. Learn more about what's new and the migration path for apps already working with files and file comments.
|
10
10
|
#
|
11
11
|
# @option options [file] :file
|
12
12
|
# ID of file to delete.
|
@@ -35,7 +35,7 @@ module Slack
|
|
35
35
|
end
|
36
36
|
|
37
37
|
#
|
38
|
-
#
|
38
|
+
# A new file commenting experience arrived on July 23, 2018. Learn more about what's new and the migration path for apps already working with files and file comments.
|
39
39
|
#
|
40
40
|
# @option options [file] :file
|
41
41
|
# Specify a file by providing its ID.
|
@@ -57,7 +57,7 @@ module Slack
|
|
57
57
|
end
|
58
58
|
|
59
59
|
#
|
60
|
-
#
|
60
|
+
# A new file commenting experience arrived on July 23, 2018. Learn more about what's new and the migration path for apps already working with files and file comments.
|
61
61
|
#
|
62
62
|
# @option options [channel] :channel
|
63
63
|
# Filter files appearing in a specific channel, indicated by its ID.
|
@@ -66,18 +66,7 @@ module Slack
|
|
66
66
|
# @option options [Object] :ts_to
|
67
67
|
# Filter files created before this timestamp (inclusive).
|
68
68
|
# @option options [Object] :types
|
69
|
-
# Filter files by type
|
70
|
-
# * `all` - All files
|
71
|
-
# * `spaces` - Posts
|
72
|
-
# * `snippets` - Snippets
|
73
|
-
# * `images` - Image files
|
74
|
-
# * `gdocs` - Google docs
|
75
|
-
# * `zips` - Zip files
|
76
|
-
# * `pdfs` - PDF files
|
77
|
-
#
|
78
|
-
# You can pass multiple values in the types argument, like `types=spaces,snippets`.The default value is `all`, which does not filter the list.
|
79
|
-
#
|
80
|
-
# .
|
69
|
+
# Filter files by type (see below). You can pass multiple values in the types argument, like types=spaces,snippets.The default value is all, which does not filter the list.
|
81
70
|
# @option options [user] :user
|
82
71
|
# Filter files created by a single user.
|
83
72
|
# @see https://api.slack.com/methods/files.list
|
@@ -89,7 +78,7 @@ module Slack
|
|
89
78
|
end
|
90
79
|
|
91
80
|
#
|
92
|
-
#
|
81
|
+
# A new file commenting experience arrived on July 23, 2018. Learn more about what's new and the migration path for apps already working with files and file comments.
|
93
82
|
#
|
94
83
|
# @option options [file] :file
|
95
84
|
# File to revoke.
|
@@ -117,7 +106,7 @@ module Slack
|
|
117
106
|
end
|
118
107
|
|
119
108
|
#
|
120
|
-
#
|
109
|
+
# A new file commenting experience arrived on July 23, 2018. Learn more about what's new and the migration path for apps already working with files and file comments.
|
121
110
|
#
|
122
111
|
# @option options [file] :file
|
123
112
|
# File to share.
|
@@ -129,7 +118,7 @@ module Slack
|
|
129
118
|
end
|
130
119
|
|
131
120
|
#
|
132
|
-
#
|
121
|
+
# A new file commenting experience arrived on July 23, 2018. Learn more about what's new and the migration path for apps already working with files and file comments.
|
133
122
|
#
|
134
123
|
# @option options [Object] :channels
|
135
124
|
# Comma-separated list of channel names or IDs where the file will be shared.
|
@@ -6,22 +6,7 @@ module Slack
|
|
6
6
|
module Endpoints
|
7
7
|
module FilesComments
|
8
8
|
#
|
9
|
-
#
|
10
|
-
#
|
11
|
-
# @option options [Object] :comment
|
12
|
-
# Text of the comment to add.
|
13
|
-
# @option options [file] :file
|
14
|
-
# File to add a comment to.
|
15
|
-
# @see https://api.slack.com/methods/files.comments.add
|
16
|
-
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/files.comments/files.comments.add.json
|
17
|
-
def files_comments_add(options = {})
|
18
|
-
throw ArgumentError.new('Required arguments :comment missing') if options[:comment].nil?
|
19
|
-
throw ArgumentError.new('Required arguments :file missing') if options[:file].nil?
|
20
|
-
post('files.comments.add', options)
|
21
|
-
end
|
22
|
-
|
23
|
-
#
|
24
|
-
# Deletes an existing comment on a file.
|
9
|
+
# A new file commenting experience arrived on July 23, 2018. Learn more about what's new and the migration path for apps already working with files and file comments.
|
25
10
|
#
|
26
11
|
# @option options [file] :file
|
27
12
|
# File to delete a comment from.
|
@@ -34,24 +19,6 @@ module Slack
|
|
34
19
|
throw ArgumentError.new('Required arguments :id missing') if options[:id].nil?
|
35
20
|
post('files.comments.delete', options)
|
36
21
|
end
|
37
|
-
|
38
|
-
#
|
39
|
-
# Edit an existing file comment.
|
40
|
-
#
|
41
|
-
# @option options [Object] :comment
|
42
|
-
# Text of the comment to edit.
|
43
|
-
# @option options [file] :file
|
44
|
-
# File containing the comment to edit.
|
45
|
-
# @option options [Object] :id
|
46
|
-
# The comment to edit.
|
47
|
-
# @see https://api.slack.com/methods/files.comments.edit
|
48
|
-
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/files.comments/files.comments.edit.json
|
49
|
-
def files_comments_edit(options = {})
|
50
|
-
throw ArgumentError.new('Required arguments :comment missing') if options[:comment].nil?
|
51
|
-
throw ArgumentError.new('Required arguments :file missing') if options[:file].nil?
|
52
|
-
throw ArgumentError.new('Required arguments :id missing') if options[:id].nil?
|
53
|
-
post('files.comments.edit', options)
|
54
|
-
end
|
55
22
|
end
|
56
23
|
end
|
57
24
|
end
|
@@ -6,7 +6,7 @@ module Slack
|
|
6
6
|
module Endpoints
|
7
7
|
module Groups
|
8
8
|
#
|
9
|
-
#
|
9
|
+
# This method archives a private channel.
|
10
10
|
#
|
11
11
|
# @option options [group] :channel
|
12
12
|
# Private channel to archive.
|
@@ -19,7 +19,7 @@ module Slack
|
|
19
19
|
end
|
20
20
|
|
21
21
|
#
|
22
|
-
#
|
22
|
+
# This method creates a private channel.
|
23
23
|
#
|
24
24
|
# @option options [Object] :name
|
25
25
|
# Name of private channel to create.
|
@@ -33,7 +33,7 @@ module Slack
|
|
33
33
|
end
|
34
34
|
|
35
35
|
#
|
36
|
-
#
|
36
|
+
# This method takes an existing private channel and performs the following steps:
|
37
37
|
#
|
38
38
|
# @option options [group] :channel
|
39
39
|
# Private channel to clone and archive.
|
@@ -46,7 +46,9 @@ module Slack
|
|
46
46
|
end
|
47
47
|
|
48
48
|
#
|
49
|
-
#
|
49
|
+
# This method returns a portion of messages/events from the specified private channel.
|
50
|
+
# To read the entire history for a private channel, call the method with no latest or
|
51
|
+
# oldest arguments, and then continue paging using the instructions below.
|
50
52
|
#
|
51
53
|
# @option options [group] :channel
|
52
54
|
# Private channel to fetch history for.
|
@@ -67,7 +69,7 @@ module Slack
|
|
67
69
|
end
|
68
70
|
|
69
71
|
#
|
70
|
-
#
|
72
|
+
# Don't use this method. Use conversations.info instead.
|
71
73
|
#
|
72
74
|
# @option options [group] :channel
|
73
75
|
# Private channel to get info on.
|
@@ -82,7 +84,7 @@ module Slack
|
|
82
84
|
end
|
83
85
|
|
84
86
|
#
|
85
|
-
#
|
87
|
+
# This method is used to invite a user to a private channel. The calling user must be a member of the private channel.
|
86
88
|
#
|
87
89
|
# @option options [group] :channel
|
88
90
|
# Private channel to invite user to.
|
@@ -99,7 +101,7 @@ module Slack
|
|
99
101
|
end
|
100
102
|
|
101
103
|
#
|
102
|
-
#
|
104
|
+
# This method allows a user to remove another member from a private channel.
|
103
105
|
#
|
104
106
|
# @option options [group] :channel
|
105
107
|
# Private channel to remove user from.
|
@@ -116,7 +118,7 @@ module Slack
|
|
116
118
|
end
|
117
119
|
|
118
120
|
#
|
119
|
-
#
|
121
|
+
# This method is used to leave a private channel.
|
120
122
|
#
|
121
123
|
# @option options [group] :channel
|
122
124
|
# Private channel to leave.
|
@@ -129,7 +131,7 @@ module Slack
|
|
129
131
|
end
|
130
132
|
|
131
133
|
#
|
132
|
-
#
|
134
|
+
# Don't use this method. Use conversations.list instead.
|
133
135
|
#
|
134
136
|
# @option options [Object] :cursor
|
135
137
|
# Parameter for pagination. Set cursor equal to the next_cursor attribute returned by the previous request's response_metadata. This parameter is optional, but pagination is mandatory: the default value simply fetches the first "page" of the collection. See pagination for more details.
|
@@ -152,7 +154,7 @@ module Slack
|
|
152
154
|
end
|
153
155
|
|
154
156
|
#
|
155
|
-
#
|
157
|
+
# This method moves the read cursor in a private channel.
|
156
158
|
#
|
157
159
|
# @option options [group] :channel
|
158
160
|
# Private channel to set reading cursor in.
|
@@ -168,7 +170,7 @@ module Slack
|
|
168
170
|
end
|
169
171
|
|
170
172
|
#
|
171
|
-
#
|
173
|
+
# This method opens a private channel.
|
172
174
|
#
|
173
175
|
# @option options [group] :channel
|
174
176
|
# Private channel to open.
|
@@ -181,7 +183,7 @@ module Slack
|
|
181
183
|
end
|
182
184
|
|
183
185
|
#
|
184
|
-
#
|
186
|
+
# This method renames a private channel.
|
185
187
|
#
|
186
188
|
# @option options [group] :channel
|
187
189
|
# Private channel to rename.
|
@@ -199,7 +201,7 @@ module Slack
|
|
199
201
|
end
|
200
202
|
|
201
203
|
#
|
202
|
-
#
|
204
|
+
# This method returns an entire thread (a message plus all the messages in reply to it).
|
203
205
|
#
|
204
206
|
# @option options [group] :channel
|
205
207
|
# Private channel to fetch thread from.
|
@@ -215,7 +217,7 @@ module Slack
|
|
215
217
|
end
|
216
218
|
|
217
219
|
#
|
218
|
-
#
|
220
|
+
# This method is used to change the purpose of a private channel. The calling user must be a member of the private channel.
|
219
221
|
#
|
220
222
|
# @option options [group] :channel
|
221
223
|
# Private channel to set the purpose of.
|
@@ -231,7 +233,7 @@ module Slack
|
|
231
233
|
end
|
232
234
|
|
233
235
|
#
|
234
|
-
#
|
236
|
+
# This method is used to change the topic of a private channel. The calling user must be a member of the private channel.
|
235
237
|
#
|
236
238
|
# @option options [group] :channel
|
237
239
|
# Private channel to set the topic of.
|
@@ -247,7 +249,7 @@ module Slack
|
|
247
249
|
end
|
248
250
|
|
249
251
|
#
|
250
|
-
#
|
252
|
+
# This method unarchives a private channel.
|
251
253
|
#
|
252
254
|
# @option options [group] :channel
|
253
255
|
# Private channel to unarchive.
|
@@ -6,7 +6,7 @@ module Slack
|
|
6
6
|
module Endpoints
|
7
7
|
module Im
|
8
8
|
#
|
9
|
-
#
|
9
|
+
# This method closes a direct message channel.
|
10
10
|
#
|
11
11
|
# @option options [im] :channel
|
12
12
|
# Direct message channel to close.
|
@@ -19,7 +19,9 @@ module Slack
|
|
19
19
|
end
|
20
20
|
|
21
21
|
#
|
22
|
-
#
|
22
|
+
# This method returns a portion of messages/events from the specified direct message channel.
|
23
|
+
# To read the entire history for a direct message channel, call the method with no latest or
|
24
|
+
# oldest arguments, and then continue paging using the instructions below.
|
23
25
|
#
|
24
26
|
# @option options [im] :channel
|
25
27
|
# Direct message channel to fetch history for.
|
@@ -40,7 +42,7 @@ module Slack
|
|
40
42
|
end
|
41
43
|
|
42
44
|
#
|
43
|
-
#
|
45
|
+
# Don't use this method. Use conversations.list instead.
|
44
46
|
#
|
45
47
|
# @option options [Object] :cursor
|
46
48
|
# Paginate through collections of data by setting the cursor parameter to a next_cursor attribute returned by a previous request's response_metadata. Default value fetches the first "page" of the collection. See pagination for more detail.
|
@@ -59,7 +61,7 @@ module Slack
|
|
59
61
|
end
|
60
62
|
|
61
63
|
#
|
62
|
-
#
|
64
|
+
# This method moves the read cursor in a direct message channel.
|
63
65
|
#
|
64
66
|
# @option options [im] :channel
|
65
67
|
# Direct message channel to set reading cursor in.
|
@@ -75,7 +77,7 @@ module Slack
|
|
75
77
|
end
|
76
78
|
|
77
79
|
#
|
78
|
-
#
|
80
|
+
# This method opens a direct message channel with another member of your Slack team.
|
79
81
|
#
|
80
82
|
# @option options [user] :user
|
81
83
|
# User to open a direct message channel with.
|
@@ -92,7 +94,7 @@ module Slack
|
|
92
94
|
end
|
93
95
|
|
94
96
|
#
|
95
|
-
#
|
97
|
+
# This method returns an entire thread (a message plus all the messages in reply to it).
|
96
98
|
#
|
97
99
|
# @option options [im] :channel
|
98
100
|
# Direct message channel to fetch thread from.
|
@@ -6,7 +6,7 @@ module Slack
|
|
6
6
|
module Endpoints
|
7
7
|
module Migration
|
8
8
|
#
|
9
|
-
#
|
9
|
+
# Easily convert your vintage user IDs to Enterprise Grid-friendly global user IDs.
|
10
10
|
#
|
11
11
|
# @option options [Object] :users
|
12
12
|
# A comma-separated list of user ids, up to 400 per request.
|
@@ -6,7 +6,7 @@ module Slack
|
|
6
6
|
module Endpoints
|
7
7
|
module Mpim
|
8
8
|
#
|
9
|
-
#
|
9
|
+
# This method closes a multiparty direct message channel.
|
10
10
|
#
|
11
11
|
# @option options [channel] :channel
|
12
12
|
# MPIM to close.
|
@@ -19,7 +19,9 @@ module Slack
|
|
19
19
|
end
|
20
20
|
|
21
21
|
#
|
22
|
-
#
|
22
|
+
# This method returns a portion of messages/events from the specified multiparty direct message channel.
|
23
|
+
# To read the entire history for a multiparty direct message, call the method with no latest or
|
24
|
+
# oldest arguments, and then continue paging using the instructions below.
|
23
25
|
#
|
24
26
|
# @option options [channel] :channel
|
25
27
|
# Multiparty direct message to fetch history for.
|
@@ -40,7 +42,7 @@ module Slack
|
|
40
42
|
end
|
41
43
|
|
42
44
|
#
|
43
|
-
#
|
45
|
+
# Don't use this method. Use conversations.list instead.
|
44
46
|
#
|
45
47
|
# @option options [Object] :cursor
|
46
48
|
# Parameter for pagination. Set cursor equal to the next_cursor attribute returned by the previous request's response_metadata. This parameter is optional, but pagination is mandatory: the default value simply fetches the first "page" of the collection. See pagination for more details.
|
@@ -59,7 +61,7 @@ module Slack
|
|
59
61
|
end
|
60
62
|
|
61
63
|
#
|
62
|
-
#
|
64
|
+
# This method moves the read cursor in a multiparty direct message channel.
|
63
65
|
#
|
64
66
|
# @option options [channel] :channel
|
65
67
|
# multiparty direct message channel to set reading cursor in.
|
@@ -87,7 +89,7 @@ module Slack
|
|
87
89
|
end
|
88
90
|
|
89
91
|
#
|
90
|
-
#
|
92
|
+
# This method returns an entire thread (a message plus all the messages in reply to it).
|
91
93
|
#
|
92
94
|
# @option options [channel] :channel
|
93
95
|
# Multiparty direct message channel to fetch thread from.
|
@@ -6,7 +6,7 @@ module Slack
|
|
6
6
|
module Endpoints
|
7
7
|
module Oauth
|
8
8
|
#
|
9
|
-
#
|
9
|
+
# This method allows you to exchange a temporary OAuth code for an API access token.
|
10
10
|
#
|
11
11
|
# @option options [Object] :client_id
|
12
12
|
# Issued when you created your application.
|
@@ -28,7 +28,7 @@ module Slack
|
|
28
28
|
end
|
29
29
|
|
30
30
|
#
|
31
|
-
#
|
31
|
+
# This feature was exclusive to our workspace apps developer preview. The preview has now ended, but fan-favorite features such as token rotation and the Conversations API will become available to classic Slack apps over the coming months.
|
32
32
|
#
|
33
33
|
# @option options [Object] :client_id
|
34
34
|
# Issued when you created your application.
|
@@ -6,7 +6,8 @@ module Slack
|
|
6
6
|
module Endpoints
|
7
7
|
module Pins
|
8
8
|
#
|
9
|
-
#
|
9
|
+
# This method pins an item (file, file comment, channel message, or group message) to a particular channel.
|
10
|
+
# The channel argument is required and one of file, file_comment, or timestamp must also be specified.
|
10
11
|
#
|
11
12
|
# @option options [channel] :channel
|
12
13
|
# Channel to pin the item in.
|
@@ -25,7 +26,7 @@ module Slack
|
|
25
26
|
end
|
26
27
|
|
27
28
|
#
|
28
|
-
#
|
29
|
+
# This method lists the items pinned to a channel.
|
29
30
|
#
|
30
31
|
# @option options [channel] :channel
|
31
32
|
# Channel to get pinned items for.
|
@@ -38,7 +39,8 @@ module Slack
|
|
38
39
|
end
|
39
40
|
|
40
41
|
#
|
41
|
-
#
|
42
|
+
# This method un-pins an item (file, file comment, channel message, or group message) from a channel.
|
43
|
+
# The channel argument is required and one of file, file_comment, or timestamp must also be specified.
|
42
44
|
#
|
43
45
|
# @option options [channel] :channel
|
44
46
|
# Channel where the item is pinned to.
|