slack-ruby-client 0.14.6 → 0.15.0
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/.github/FUNDING.yml +1 -0
- data/.rubocop.yml +9 -2
- data/.rubocop_todo.yml +52 -12
- data/.travis.yml +0 -1
- data/CHANGELOG.md +10 -0
- data/CONTRIBUTING.md +24 -6
- data/Dangerfile +1 -1
- data/Gemfile +1 -2
- data/README.md +20 -1
- data/UPGRADING.md +6 -0
- data/bin/commands.rb +5 -0
- data/bin/commands/admin_conversations.rb +1 -1
- data/bin/commands/admin_conversations_restrictAccess.rb +37 -0
- data/bin/commands/admin_conversations_whitelist.rb +37 -0
- data/bin/commands/admin_usergroups.rb +48 -0
- data/bin/commands/calls.rb +52 -0
- data/bin/commands/calls_participants.rb +25 -0
- data/bin/commands/chat.rb +5 -5
- data/bin/commands/conversations.rb +0 -1
- data/lib/slack-ruby-client.rb +2 -4
- data/lib/slack/messages/message.rb +0 -4
- data/lib/slack/real_time/concurrency/async.rb +1 -3
- data/lib/slack/real_time/concurrency/eventmachine.rb +3 -3
- data/lib/slack/real_time/models/base.rb +0 -4
- data/lib/slack/real_time/socket.rb +2 -2
- data/lib/slack/real_time/stores/base.rb +3 -1
- data/lib/slack/version.rb +1 -1
- data/lib/slack/web/api/endpoints.rb +11 -0
- data/lib/slack/web/api/endpoints/admin_conversations.rb +1 -1
- data/lib/slack/web/api/endpoints/admin_conversations_restrictAccess.rb +61 -0
- data/lib/slack/web/api/endpoints/admin_conversations_whitelist.rb +64 -0
- data/lib/slack/web/api/endpoints/admin_usergroups.rb +77 -0
- data/lib/slack/web/api/endpoints/calls.rb +83 -0
- data/lib/slack/web/api/endpoints/calls_participants.rb +42 -0
- data/lib/slack/web/api/endpoints/channels.rb +28 -13
- data/lib/slack/web/api/endpoints/chat.rb +12 -12
- data/lib/slack/web/api/endpoints/chat_scheduledMessages.rb +1 -1
- data/lib/slack/web/api/endpoints/conversations.rb +15 -17
- data/lib/slack/web/api/endpoints/files.rb +2 -2
- data/lib/slack/web/api/endpoints/files_remote.rb +1 -1
- data/lib/slack/web/api/endpoints/groups.rb +16 -0
- data/lib/slack/web/api/endpoints/im.rb +10 -4
- data/lib/slack/web/api/endpoints/mpim.rb +10 -4
- data/lib/slack/web/api/endpoints/oauth.rb +0 -3
- data/lib/slack/web/api/endpoints/pins.rb +3 -3
- data/lib/slack/web/api/endpoints/reactions.rb +3 -3
- data/lib/slack/web/api/endpoints/stars.rb +2 -2
- data/lib/slack/web/api/errors.rb +92 -2
- data/lib/slack/web/api/mixins.rb +1 -0
- data/lib/slack/web/api/mixins/conversations.id.rb +27 -0
- data/lib/slack/web/api/mixins/ids.id.rb +1 -3
- data/lib/slack/web/api/patches/{chat.6.block-kit-support.patch → chat.1.patch} +29 -26
- data/lib/slack/web/api/templates/method.erb +4 -1
- data/lib/slack/web/faraday/connection.rb +23 -20
- data/lib/slack/web/pagination/cursor.rb +2 -2
- data/slack-ruby-client.gemspec +5 -5
- data/spec/fixtures/slack/web/channels_info.yml +108 -15
- data/spec/slack/web/api/endpoints/admin_conversations_restrictAccess_spec.rb +32 -0
- data/spec/slack/web/api/endpoints/admin_conversations_whitelist_spec.rb +32 -0
- data/spec/slack/web/api/endpoints/admin_usergroups_spec.rb +37 -0
- data/spec/slack/web/api/endpoints/calls_participants_spec.rb +24 -0
- data/spec/slack/web/api/endpoints/calls_spec.rb +31 -0
- data/spec/slack/web/api/endpoints/custom_specs/channels_spec.rb +3 -3
- data/spec/slack/web/api/endpoints/oauth_spec.rb +0 -11
- data/spec/slack/web/api/errors/service_unavailable_spec.rb +2 -2
- data/spec/slack/web/api/mixins/conversations_spec.rb +41 -0
- data/spec/slack/web/client_spec.rb +26 -0
- metadata +49 -30
- data/lib/slack/web/api/patches/chat.1.text-attachments-required.patch +0 -13
- data/lib/slack/web/api/patches/chat.2.attachments-json.patch +0 -17
- data/lib/slack/web/api/patches/chat.3.update-attachments-support.patch +0 -21
- data/lib/slack/web/api/patches/chat.4.postEphemeral-attachments-support.patch +0 -17
- data/lib/slack/web/api/patches/chat.5.postEphemeral-text-or-attachments.patch +0 -15
@@ -75,7 +75,7 @@ module Slack
|
|
75
75
|
# @see https://api.slack.com/methods/files.list
|
76
76
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/files/files.list.json
|
77
77
|
def files_list(options = {})
|
78
|
-
options = options.merge(channel:
|
78
|
+
options = options.merge(channel: conversations_id(options)['channel']['id']) if options[:channel]
|
79
79
|
options = options.merge(user: users_id(options)['user']['id']) if options[:user]
|
80
80
|
post('files.list', options)
|
81
81
|
end
|
@@ -103,7 +103,7 @@ module Slack
|
|
103
103
|
def files_share(options = {})
|
104
104
|
throw ArgumentError.new('Required arguments :file missing') if options[:file].nil?
|
105
105
|
throw ArgumentError.new('Required arguments :channel missing') if options[:channel].nil?
|
106
|
-
options = options.merge(channel:
|
106
|
+
options = options.merge(channel: conversations_id(options)['channel']['id']) if options[:channel]
|
107
107
|
logger.warn('The files.share method is undocumented.')
|
108
108
|
post('files.share', options)
|
109
109
|
end
|
@@ -59,7 +59,7 @@ module Slack
|
|
59
59
|
# @see https://api.slack.com/methods/files.remote.list
|
60
60
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/files.remote/files.remote.list.json
|
61
61
|
def files_remote_list(options = {})
|
62
|
-
options = options.merge(channel:
|
62
|
+
options = options.merge(channel: conversations_id(options)['channel']['id']) if options[:channel]
|
63
63
|
if block_given?
|
64
64
|
Pagination::Cursor.new(self, :files_remote_list, options).each do |page|
|
65
65
|
yield page
|
@@ -16,6 +16,7 @@ module Slack
|
|
16
16
|
def groups_archive(options = {})
|
17
17
|
throw ArgumentError.new('Required arguments :channel missing') if options[:channel].nil?
|
18
18
|
options = options.merge(channel: groups_id(options)['group']['id']) if options[:channel]
|
19
|
+
logger.warn('groups.archive: This method is deprecated. It will stop functioning in February 2021 and will not work with newly created apps after June 10th, 2020. Alternative methods: conversations.archive.')
|
19
20
|
post('groups.archive', options)
|
20
21
|
end
|
21
22
|
|
@@ -30,6 +31,7 @@ module Slack
|
|
30
31
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/groups/groups.create.json
|
31
32
|
def groups_create(options = {})
|
32
33
|
throw ArgumentError.new('Required arguments :name missing') if options[:name].nil?
|
34
|
+
logger.warn('groups.create: This method is deprecated. It will stop functioning in February 2021 and will not work with newly created apps after June 10th, 2020. Alternative methods: conversations.create.')
|
33
35
|
post('groups.create', options)
|
34
36
|
end
|
35
37
|
|
@@ -43,6 +45,7 @@ module Slack
|
|
43
45
|
def groups_createChild(options = {})
|
44
46
|
throw ArgumentError.new('Required arguments :channel missing') if options[:channel].nil?
|
45
47
|
options = options.merge(channel: groups_id(options)['group']['id']) if options[:channel]
|
48
|
+
logger.warn('groups.createChild: This method is deprecated. It will stop functioning in February 2021 and will not work with newly created apps after June 10th, 2020. Alternative methods: .')
|
46
49
|
post('groups.createChild', options)
|
47
50
|
end
|
48
51
|
|
@@ -64,6 +67,7 @@ module Slack
|
|
64
67
|
def groups_history(options = {})
|
65
68
|
throw ArgumentError.new('Required arguments :channel missing') if options[:channel].nil?
|
66
69
|
options = options.merge(channel: groups_id(options)['group']['id']) if options[:channel]
|
70
|
+
logger.warn('groups.history: This method is deprecated. It will stop functioning in February 2021 and will not work with newly created apps after June 10th, 2020. Alternative methods: conversations.history.')
|
67
71
|
post('groups.history', options)
|
68
72
|
end
|
69
73
|
|
@@ -79,6 +83,7 @@ module Slack
|
|
79
83
|
def groups_info(options = {})
|
80
84
|
throw ArgumentError.new('Required arguments :channel missing') if options[:channel].nil?
|
81
85
|
options = options.merge(channel: groups_id(options)['group']['id']) if options[:channel]
|
86
|
+
logger.warn('groups.info: This method is deprecated. It will stop functioning in February 2021 and will not work with newly created apps after June 10th, 2020. Alternative methods: conversations.info.')
|
82
87
|
post('groups.info', options)
|
83
88
|
end
|
84
89
|
|
@@ -96,6 +101,7 @@ module Slack
|
|
96
101
|
throw ArgumentError.new('Required arguments :user missing') if options[:user].nil?
|
97
102
|
options = options.merge(channel: groups_id(options)['group']['id']) if options[:channel]
|
98
103
|
options = options.merge(user: users_id(options)['user']['id']) if options[:user]
|
104
|
+
logger.warn('groups.invite: This method is deprecated. It will stop functioning in February 2021 and will not work with newly created apps after June 10th, 2020. Alternative methods: conversations.invite.')
|
99
105
|
post('groups.invite', options)
|
100
106
|
end
|
101
107
|
|
@@ -113,6 +119,7 @@ module Slack
|
|
113
119
|
throw ArgumentError.new('Required arguments :user missing') if options[:user].nil?
|
114
120
|
options = options.merge(channel: groups_id(options)['group']['id']) if options[:channel]
|
115
121
|
options = options.merge(user: users_id(options)['user']['id']) if options[:user]
|
122
|
+
logger.warn('groups.kick: This method is deprecated. It will stop functioning in February 2021 and will not work with newly created apps after June 10th, 2020. Alternative methods: conversations.kick.')
|
116
123
|
post('groups.kick', options)
|
117
124
|
end
|
118
125
|
|
@@ -126,6 +133,7 @@ module Slack
|
|
126
133
|
def groups_leave(options = {})
|
127
134
|
throw ArgumentError.new('Required arguments :channel missing') if options[:channel].nil?
|
128
135
|
options = options.merge(channel: groups_id(options)['group']['id']) if options[:channel]
|
136
|
+
logger.warn('groups.leave: This method is deprecated. It will stop functioning in February 2021 and will not work with newly created apps after June 10th, 2020. Alternative methods: conversations.leave.')
|
129
137
|
post('groups.leave', options)
|
130
138
|
end
|
131
139
|
|
@@ -143,6 +151,7 @@ module Slack
|
|
143
151
|
# @see https://api.slack.com/methods/groups.list
|
144
152
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/groups/groups.list.json
|
145
153
|
def groups_list(options = {})
|
154
|
+
logger.warn('groups.list: This method is deprecated. It will stop functioning in February 2021 and will not work with newly created apps after June 10th, 2020. Alternative methods: conversations.list, users.conversations.')
|
146
155
|
if block_given?
|
147
156
|
Pagination::Cursor.new(self, :groups_list, options).each do |page|
|
148
157
|
yield page
|
@@ -165,6 +174,7 @@ module Slack
|
|
165
174
|
throw ArgumentError.new('Required arguments :channel missing') if options[:channel].nil?
|
166
175
|
throw ArgumentError.new('Required arguments :ts missing') if options[:ts].nil?
|
167
176
|
options = options.merge(channel: groups_id(options)['group']['id']) if options[:channel]
|
177
|
+
logger.warn('groups.mark: This method is deprecated. It will stop functioning in February 2021 and will not work with newly created apps after June 10th, 2020. Alternative methods: .')
|
168
178
|
post('groups.mark', options)
|
169
179
|
end
|
170
180
|
|
@@ -178,6 +188,7 @@ module Slack
|
|
178
188
|
def groups_open(options = {})
|
179
189
|
throw ArgumentError.new('Required arguments :channel missing') if options[:channel].nil?
|
180
190
|
options = options.merge(channel: groups_id(options)['group']['id']) if options[:channel]
|
191
|
+
logger.warn('groups.open: This method is deprecated. It will stop functioning in February 2021 and will not work with newly created apps after June 10th, 2020. Alternative methods: .')
|
181
192
|
post('groups.open', options)
|
182
193
|
end
|
183
194
|
|
@@ -196,6 +207,7 @@ module Slack
|
|
196
207
|
throw ArgumentError.new('Required arguments :channel missing') if options[:channel].nil?
|
197
208
|
throw ArgumentError.new('Required arguments :name missing') if options[:name].nil?
|
198
209
|
options = options.merge(channel: groups_id(options)['group']['id']) if options[:channel]
|
210
|
+
logger.warn('groups.rename: This method is deprecated. It will stop functioning in February 2021 and will not work with newly created apps after June 10th, 2020. Alternative methods: conversations.rename.')
|
199
211
|
post('groups.rename', options)
|
200
212
|
end
|
201
213
|
|
@@ -212,6 +224,7 @@ module Slack
|
|
212
224
|
throw ArgumentError.new('Required arguments :channel missing') if options[:channel].nil?
|
213
225
|
throw ArgumentError.new('Required arguments :thread_ts missing') if options[:thread_ts].nil?
|
214
226
|
options = options.merge(channel: groups_id(options)['group']['id']) if options[:channel]
|
227
|
+
logger.warn('groups.replies: This method is deprecated. It will stop functioning in February 2021 and will not work with newly created apps after June 10th, 2020. Alternative methods: conversations.replies.')
|
215
228
|
post('groups.replies', options)
|
216
229
|
end
|
217
230
|
|
@@ -228,6 +241,7 @@ module Slack
|
|
228
241
|
throw ArgumentError.new('Required arguments :channel missing') if options[:channel].nil?
|
229
242
|
throw ArgumentError.new('Required arguments :purpose missing') if options[:purpose].nil?
|
230
243
|
options = options.merge(channel: groups_id(options)['group']['id']) if options[:channel]
|
244
|
+
logger.warn('groups.setPurpose: This method is deprecated. It will stop functioning in February 2021 and will not work with newly created apps after June 10th, 2020. Alternative methods: conversations.setPurpose.')
|
231
245
|
post('groups.setPurpose', options)
|
232
246
|
end
|
233
247
|
|
@@ -244,6 +258,7 @@ module Slack
|
|
244
258
|
throw ArgumentError.new('Required arguments :channel missing') if options[:channel].nil?
|
245
259
|
throw ArgumentError.new('Required arguments :topic missing') if options[:topic].nil?
|
246
260
|
options = options.merge(channel: groups_id(options)['group']['id']) if options[:channel]
|
261
|
+
logger.warn('groups.setTopic: This method is deprecated. It will stop functioning in February 2021 and will not work with newly created apps after June 10th, 2020. Alternative methods: conversations.setTopic.')
|
247
262
|
post('groups.setTopic', options)
|
248
263
|
end
|
249
264
|
|
@@ -257,6 +272,7 @@ module Slack
|
|
257
272
|
def groups_unarchive(options = {})
|
258
273
|
throw ArgumentError.new('Required arguments :channel missing') if options[:channel].nil?
|
259
274
|
options = options.merge(channel: groups_id(options)['group']['id']) if options[:channel]
|
275
|
+
logger.warn('groups.unarchive: This method is deprecated. It will stop functioning in February 2021 and will not work with newly created apps after June 10th, 2020. Alternative methods: conversations.unarchive.')
|
260
276
|
post('groups.unarchive', options)
|
261
277
|
end
|
262
278
|
end
|
@@ -15,7 +15,8 @@ module Slack
|
|
15
15
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/im/im.close.json
|
16
16
|
def im_close(options = {})
|
17
17
|
throw ArgumentError.new('Required arguments :channel missing') if options[:channel].nil?
|
18
|
-
options = options.merge(channel:
|
18
|
+
options = options.merge(channel: conversations_id(options)['channel']['id']) if options[:channel]
|
19
|
+
logger.warn('im.close: This method is deprecated. It will stop functioning in February 2021 and will not work with newly created apps after June 10th, 2020. Alternative methods: conversations.close.')
|
19
20
|
post('im.close', options)
|
20
21
|
end
|
21
22
|
|
@@ -36,7 +37,8 @@ module Slack
|
|
36
37
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/im/im.history.json
|
37
38
|
def im_history(options = {})
|
38
39
|
throw ArgumentError.new('Required arguments :channel missing') if options[:channel].nil?
|
39
|
-
options = options.merge(channel:
|
40
|
+
options = options.merge(channel: conversations_id(options)['channel']['id']) if options[:channel]
|
41
|
+
logger.warn('im.history: This method is deprecated. It will stop functioning in February 2021 and will not work with newly created apps after June 10th, 2020. Alternative methods: conversations.history.')
|
40
42
|
post('im.history', options)
|
41
43
|
end
|
42
44
|
|
@@ -50,6 +52,7 @@ module Slack
|
|
50
52
|
# @see https://api.slack.com/methods/im.list
|
51
53
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/im/im.list.json
|
52
54
|
def im_list(options = {})
|
55
|
+
logger.warn('im.list: This method is deprecated. It will stop functioning in February 2021 and will not work with newly created apps after June 10th, 2020. Alternative methods: conversations.list, users.conversations.')
|
53
56
|
if block_given?
|
54
57
|
Pagination::Cursor.new(self, :im_list, options).each do |page|
|
55
58
|
yield page
|
@@ -71,7 +74,8 @@ module Slack
|
|
71
74
|
def im_mark(options = {})
|
72
75
|
throw ArgumentError.new('Required arguments :channel missing') if options[:channel].nil?
|
73
76
|
throw ArgumentError.new('Required arguments :ts missing') if options[:ts].nil?
|
74
|
-
options = options.merge(channel:
|
77
|
+
options = options.merge(channel: conversations_id(options)['channel']['id']) if options[:channel]
|
78
|
+
logger.warn('im.mark: This method is deprecated. It will stop functioning in February 2021 and will not work with newly created apps after June 10th, 2020. Alternative methods: .')
|
75
79
|
post('im.mark', options)
|
76
80
|
end
|
77
81
|
|
@@ -89,6 +93,7 @@ module Slack
|
|
89
93
|
def im_open(options = {})
|
90
94
|
throw ArgumentError.new('Required arguments :user missing') if options[:user].nil?
|
91
95
|
options = options.merge(user: users_id(options)['user']['id']) if options[:user]
|
96
|
+
logger.warn('im.open: This method is deprecated. It will stop functioning in February 2021 and will not work with newly created apps after June 10th, 2020. Alternative methods: conversations.open.')
|
92
97
|
post('im.open', options)
|
93
98
|
end
|
94
99
|
|
@@ -104,7 +109,8 @@ module Slack
|
|
104
109
|
def im_replies(options = {})
|
105
110
|
throw ArgumentError.new('Required arguments :channel missing') if options[:channel].nil?
|
106
111
|
throw ArgumentError.new('Required arguments :thread_ts missing') if options[:thread_ts].nil?
|
107
|
-
options = options.merge(channel:
|
112
|
+
options = options.merge(channel: conversations_id(options)['channel']['id']) if options[:channel]
|
113
|
+
logger.warn('im.replies: This method is deprecated. It will stop functioning in February 2021 and will not work with newly created apps after June 10th, 2020. Alternative methods: conversations.replies.')
|
108
114
|
post('im.replies', options)
|
109
115
|
end
|
110
116
|
end
|
@@ -15,7 +15,8 @@ module Slack
|
|
15
15
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/mpim/mpim.close.json
|
16
16
|
def mpim_close(options = {})
|
17
17
|
throw ArgumentError.new('Required arguments :channel missing') if options[:channel].nil?
|
18
|
-
options = options.merge(channel:
|
18
|
+
options = options.merge(channel: conversations_id(options)['channel']['id']) if options[:channel]
|
19
|
+
logger.warn('mpim.close: This method is deprecated. It will stop functioning in February 2021 and will not work with newly created apps after June 10th, 2020. Alternative methods: conversations.close.')
|
19
20
|
post('mpim.close', options)
|
20
21
|
end
|
21
22
|
|
@@ -36,7 +37,8 @@ module Slack
|
|
36
37
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/mpim/mpim.history.json
|
37
38
|
def mpim_history(options = {})
|
38
39
|
throw ArgumentError.new('Required arguments :channel missing') if options[:channel].nil?
|
39
|
-
options = options.merge(channel:
|
40
|
+
options = options.merge(channel: conversations_id(options)['channel']['id']) if options[:channel]
|
41
|
+
logger.warn('mpim.history: This method is deprecated. It will stop functioning in February 2021 and will not work with newly created apps after June 10th, 2020. Alternative methods: conversations.history.')
|
40
42
|
post('mpim.history', options)
|
41
43
|
end
|
42
44
|
|
@@ -50,6 +52,7 @@ module Slack
|
|
50
52
|
# @see https://api.slack.com/methods/mpim.list
|
51
53
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/mpim/mpim.list.json
|
52
54
|
def mpim_list(options = {})
|
55
|
+
logger.warn('mpim.list: This method is deprecated. It will stop functioning in February 2021 and will not work with newly created apps after June 10th, 2020. Alternative methods: conversations.list, users.conversations.')
|
53
56
|
if block_given?
|
54
57
|
Pagination::Cursor.new(self, :mpim_list, options).each do |page|
|
55
58
|
yield page
|
@@ -71,7 +74,8 @@ module Slack
|
|
71
74
|
def mpim_mark(options = {})
|
72
75
|
throw ArgumentError.new('Required arguments :channel missing') if options[:channel].nil?
|
73
76
|
throw ArgumentError.new('Required arguments :ts missing') if options[:ts].nil?
|
74
|
-
options = options.merge(channel:
|
77
|
+
options = options.merge(channel: conversations_id(options)['channel']['id']) if options[:channel]
|
78
|
+
logger.warn('mpim.mark: This method is deprecated. It will stop functioning in February 2021 and will not work with newly created apps after June 10th, 2020. Alternative methods: .')
|
75
79
|
post('mpim.mark', options)
|
76
80
|
end
|
77
81
|
|
@@ -84,6 +88,7 @@ module Slack
|
|
84
88
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/mpim/mpim.open.json
|
85
89
|
def mpim_open(options = {})
|
86
90
|
throw ArgumentError.new('Required arguments :users missing') if options[:users].nil?
|
91
|
+
logger.warn('mpim.open: This method is deprecated. It will stop functioning in February 2021 and will not work with newly created apps after June 10th, 2020. Alternative methods: conversations.open.')
|
87
92
|
post('mpim.open', options)
|
88
93
|
end
|
89
94
|
|
@@ -99,7 +104,8 @@ module Slack
|
|
99
104
|
def mpim_replies(options = {})
|
100
105
|
throw ArgumentError.new('Required arguments :channel missing') if options[:channel].nil?
|
101
106
|
throw ArgumentError.new('Required arguments :thread_ts missing') if options[:thread_ts].nil?
|
102
|
-
options = options.merge(channel:
|
107
|
+
options = options.merge(channel: conversations_id(options)['channel']['id']) if options[:channel]
|
108
|
+
logger.warn('mpim.replies: This method is deprecated. It will stop functioning in February 2021 and will not work with newly created apps after June 10th, 2020. Alternative methods: conversations.replies.')
|
103
109
|
post('mpim.replies', options)
|
104
110
|
end
|
105
111
|
end
|
@@ -22,9 +22,6 @@ module Slack
|
|
22
22
|
# @see https://api.slack.com/methods/oauth.access
|
23
23
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/oauth/oauth.access.json
|
24
24
|
def oauth_access(options = {})
|
25
|
-
throw ArgumentError.new('Required arguments :client_id missing') if options[:client_id].nil?
|
26
|
-
throw ArgumentError.new('Required arguments :client_secret missing') if options[:client_secret].nil?
|
27
|
-
throw ArgumentError.new('Required arguments :code missing') if options[:code].nil?
|
28
25
|
post('oauth.access', options)
|
29
26
|
end
|
30
27
|
|
@@ -18,7 +18,7 @@ module Slack
|
|
18
18
|
def pins_add(options = {})
|
19
19
|
throw ArgumentError.new('Required arguments :channel missing') if options[:channel].nil?
|
20
20
|
throw ArgumentError.new('Required arguments :timestamp missing') if options[:timestamp].nil?
|
21
|
-
options = options.merge(channel:
|
21
|
+
options = options.merge(channel: conversations_id(options)['channel']['id']) if options[:channel]
|
22
22
|
post('pins.add', options)
|
23
23
|
end
|
24
24
|
|
@@ -31,7 +31,7 @@ module Slack
|
|
31
31
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/pins/pins.list.json
|
32
32
|
def pins_list(options = {})
|
33
33
|
throw ArgumentError.new('Required arguments :channel missing') if options[:channel].nil?
|
34
|
-
options = options.merge(channel:
|
34
|
+
options = options.merge(channel: conversations_id(options)['channel']['id']) if options[:channel]
|
35
35
|
post('pins.list', options)
|
36
36
|
end
|
37
37
|
|
@@ -50,7 +50,7 @@ module Slack
|
|
50
50
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/pins/pins.remove.json
|
51
51
|
def pins_remove(options = {})
|
52
52
|
throw ArgumentError.new('Required arguments :channel missing') if options[:channel].nil?
|
53
|
-
options = options.merge(channel:
|
53
|
+
options = options.merge(channel: conversations_id(options)['channel']['id']) if options[:channel]
|
54
54
|
post('pins.remove', options)
|
55
55
|
end
|
56
56
|
end
|
@@ -21,7 +21,7 @@ module Slack
|
|
21
21
|
throw ArgumentError.new('Required arguments :channel missing') if options[:channel].nil?
|
22
22
|
throw ArgumentError.new('Required arguments :name missing') if options[:name].nil?
|
23
23
|
throw ArgumentError.new('Required arguments :timestamp missing') if options[:timestamp].nil?
|
24
|
-
options = options.merge(channel:
|
24
|
+
options = options.merge(channel: conversations_id(options)['channel']['id']) if options[:channel]
|
25
25
|
post('reactions.add', options)
|
26
26
|
end
|
27
27
|
|
@@ -41,7 +41,7 @@ module Slack
|
|
41
41
|
# @see https://api.slack.com/methods/reactions.get
|
42
42
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/reactions/reactions.get.json
|
43
43
|
def reactions_get(options = {})
|
44
|
-
options = options.merge(channel:
|
44
|
+
options = options.merge(channel: conversations_id(options)['channel']['id']) if options[:channel]
|
45
45
|
post('reactions.get', options)
|
46
46
|
end
|
47
47
|
|
@@ -86,7 +86,7 @@ module Slack
|
|
86
86
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/reactions/reactions.remove.json
|
87
87
|
def reactions_remove(options = {})
|
88
88
|
throw ArgumentError.new('Required arguments :name missing') if options[:name].nil?
|
89
|
-
options = options.merge(channel:
|
89
|
+
options = options.merge(channel: conversations_id(options)['channel']['id']) if options[:channel]
|
90
90
|
post('reactions.remove', options)
|
91
91
|
end
|
92
92
|
end
|
@@ -20,7 +20,7 @@ module Slack
|
|
20
20
|
# @see https://api.slack.com/methods/stars.add
|
21
21
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/stars/stars.add.json
|
22
22
|
def stars_add(options = {})
|
23
|
-
options = options.merge(channel:
|
23
|
+
options = options.merge(channel: conversations_id(options)['channel']['id']) if options[:channel]
|
24
24
|
post('stars.add', options)
|
25
25
|
end
|
26
26
|
|
@@ -57,7 +57,7 @@ module Slack
|
|
57
57
|
# @see https://api.slack.com/methods/stars.remove
|
58
58
|
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/stars/stars.remove.json
|
59
59
|
def stars_remove(options = {})
|
60
|
-
options = options.merge(channel:
|
60
|
+
options = options.merge(channel: conversations_id(options)['channel']['id']) if options[:channel]
|
61
61
|
post('stars.remove', options)
|
62
62
|
end
|
63
63
|
end
|
data/lib/slack/web/api/errors.rb
CHANGED
@@ -17,7 +17,9 @@ module Slack
|
|
17
17
|
class AlreadyStarred < SlackError; end
|
18
18
|
class AppManagementAppNotInstalledOnOrg < SlackError; end
|
19
19
|
class AppMissingActionUrl < SlackError; end
|
20
|
+
class AppRestrictedOrgWide < SlackError; end
|
20
21
|
class AsUserNotSupported < SlackError; end
|
22
|
+
class AutoProvisionFailure < SlackError; end
|
21
23
|
class BadClientSecret < SlackError; end
|
22
24
|
class BadImage < SlackError; end
|
23
25
|
class BadRedirectUri < SlackError; end
|
@@ -25,8 +27,11 @@ module Slack
|
|
25
27
|
class BadTitle < SlackError; end
|
26
28
|
class BadToken < SlackError; end
|
27
29
|
class BadUrl < SlackError; end
|
30
|
+
class BadUsers < SlackError; end
|
28
31
|
class BotNotFound < SlackError; end
|
29
32
|
class CannotAddBot < SlackError; end
|
33
|
+
class CannotAddMoreChannelsToGroup < SlackError; end
|
34
|
+
class CannotAddMoreGroupsToChannel < SlackError; end
|
30
35
|
class CannotAddOthers < SlackError; end
|
31
36
|
class CannotAddOthersRecurring < SlackError; end
|
32
37
|
class CannotAddSlackbot < SlackError; end
|
@@ -36,11 +41,15 @@ module Slack
|
|
36
41
|
class CannotFindChannel < SlackError; end
|
37
42
|
class CannotFindMessage < SlackError; end
|
38
43
|
class CannotFindService < SlackError; end
|
44
|
+
class CannotInstallAnOrgInstalledApp < SlackError; end
|
39
45
|
class CannotModifyPrimaryOwner < SlackError; end
|
46
|
+
class CannotMoveLocalChannel < SlackError; end
|
40
47
|
class CannotParse < SlackError; end
|
41
48
|
class CannotParseAttachment < SlackError; end
|
42
49
|
class CannotPrompt < SlackError; end
|
50
|
+
class CannotResetBot < SlackError; end
|
43
51
|
class CannotResetPrimaryOwner < SlackError; end
|
52
|
+
class CannotUnfurlMessage < SlackError; end
|
44
53
|
class CannotUnfurlUrl < SlackError; end
|
45
54
|
class CannotUpdateAdminUser < SlackError; end
|
46
55
|
class CantArchiveGeneral < SlackError; end
|
@@ -54,13 +63,15 @@ module Slack
|
|
54
63
|
class CantLeaveGeneral < SlackError; end
|
55
64
|
class CantUpdateMessage < SlackError; end
|
56
65
|
class ChannelCannotBeUnshared < SlackError; end
|
66
|
+
class ChannelIsNotPrivate < SlackError; end
|
57
67
|
class ChannelNotFound < SlackError; end
|
58
|
-
class ChannelNotSharedWithTeam < SlackError; end
|
59
68
|
class ChannelTypeNotSupported < SlackError; end
|
60
69
|
class ClientIdTokenMismatch < SlackError; end
|
61
70
|
class CodeAlreadyUsed < SlackError; end
|
62
71
|
class ComplianceExportsPreventDeletion < SlackError; end
|
63
72
|
class CouldNotCreateWorkspace < SlackError; end
|
73
|
+
class CouldNotSetTeamsForChannel < SlackError; end
|
74
|
+
class DefaultChannelRestricted < SlackError; end
|
64
75
|
class DefaultOrgWideChannel < SlackError; end
|
65
76
|
class DiscoverabilitySettingInvalid < SlackError; end
|
66
77
|
class DomainTaken < SlackError; end
|
@@ -83,23 +94,27 @@ module Slack
|
|
83
94
|
class ErrorNoImage < SlackError; end
|
84
95
|
class ErrorTooBig < SlackError; end
|
85
96
|
class ExternalChannelMigrating < SlackError; end
|
97
|
+
class ExternallySharedOrDisconnectedChannel < SlackError; end
|
86
98
|
class FailedLookingUpUser < SlackError; end
|
87
99
|
class FailedSendingDialog < SlackError; end
|
88
100
|
class FailedToAddEmoji < SlackError; end
|
89
101
|
class FailedToAliasEmoji < SlackError; end
|
90
102
|
class FailedToFetchActiveTeam < SlackError; end
|
91
103
|
class FailedToFetchInfo < SlackError; end
|
104
|
+
class FailedToRemoveGroupUsers < SlackError; end
|
92
105
|
class FailedToRemoveUserFromWorkspace < SlackError; end
|
93
106
|
class FailedToRenameEmoji < SlackError; end
|
94
107
|
class FailedToSendInvite < SlackError; end
|
95
108
|
class FailedToSetDefaultChannels < SlackError; end
|
96
109
|
class FailedToSetDescription < SlackError; end
|
97
110
|
class FailedToSetDiscoverability < SlackError; end
|
111
|
+
class FailedToSetExpiration < SlackError; end
|
98
112
|
class FailedToSetIcon < SlackError; end
|
99
113
|
class FailedToSetName < SlackError; end
|
100
114
|
class FailedToSetUserToAdmin < SlackError; end
|
101
115
|
class FailedToSetUserToOwner < SlackError; end
|
102
116
|
class FailedToSetUserToRegular < SlackError; end
|
117
|
+
class FailedToUnlinkChannel < SlackError; end
|
103
118
|
class FailedToValidateCaller < SlackError; end
|
104
119
|
class FailedToValidateChannels < SlackError; end
|
105
120
|
class FailedToValidateCustomMessage < SlackError; end
|
@@ -114,17 +129,28 @@ module Slack
|
|
114
129
|
class FileNotFound < SlackError; end
|
115
130
|
class FileNotShared < SlackError; end
|
116
131
|
class FileUnderReview < SlackError; end
|
132
|
+
class GroupAlreadyLinkedToChannel < SlackError; end
|
117
133
|
class GroupContainsOthers < SlackError; end
|
134
|
+
class GroupMustNotBeEmpty < SlackError; end
|
135
|
+
class GroupNotFound < SlackError; end
|
118
136
|
class HashConflict < SlackError; end
|
137
|
+
class InactiveCall < SlackError; end
|
138
|
+
class InternalError < SlackError; end
|
139
|
+
class InvalidActor < SlackError; end
|
119
140
|
class InvalidAppId < SlackError; end
|
120
141
|
class InvalidArgName < SlackError; end
|
121
142
|
class InvalidArguments < SlackError; end
|
143
|
+
class InvalidAttachments < SlackError; end
|
122
144
|
class InvalidAuth < SlackError; end
|
145
|
+
class InvalidBlocks < SlackError; end
|
146
|
+
class InvalidCallId < SlackError; end
|
123
147
|
class InvalidChannel < SlackError; end
|
124
148
|
class InvalidChannelId < SlackError; end
|
149
|
+
class InvalidChannelsLimit < SlackError; end
|
125
150
|
class InvalidCharset < SlackError; end
|
126
151
|
class InvalidClientId < SlackError; end
|
127
152
|
class InvalidCode < SlackError; end
|
153
|
+
class InvalidCreatedBy < SlackError; end
|
128
154
|
class InvalidCursor < SlackError; end
|
129
155
|
class InvalidEmail < SlackError; end
|
130
156
|
class InvalidExternalId < SlackError; end
|
@@ -145,15 +171,19 @@ module Slack
|
|
145
171
|
class InvalidRoleForUser < SlackError; end
|
146
172
|
class InvalidScheduledMessageId < SlackError; end
|
147
173
|
class InvalidScope < SlackError; end
|
174
|
+
class InvalidStartTime < SlackError; end
|
148
175
|
class InvalidTargetTeam < SlackError; end
|
176
|
+
class InvalidTeamIds < SlackError; end
|
149
177
|
class InvalidTime < SlackError; end
|
150
178
|
class InvalidTimestamp < SlackError; end
|
151
179
|
class InvalidTrigger < SlackError; end
|
152
180
|
class InvalidTsLatest < SlackError; end
|
153
181
|
class InvalidTsOldest < SlackError; end
|
154
182
|
class InvalidTypes < SlackError; end
|
183
|
+
class InvalidUnfurlsFormat < SlackError; end
|
155
184
|
class InvalidUrl < SlackError; end
|
156
185
|
class InvalidUser < SlackError; end
|
186
|
+
class InvalidUserCombination < SlackError; end
|
157
187
|
class InvalidUsers < SlackError; end
|
158
188
|
class InvitedUserNotCreated < SlackError; end
|
159
189
|
class InvitedUserNotReactivated < SlackError; end
|
@@ -163,13 +193,17 @@ module Slack
|
|
163
193
|
class IsInactive < SlackError; end
|
164
194
|
class LastMember < SlackError; end
|
165
195
|
class LimitRequired < SlackError; end
|
196
|
+
class LinkNotFound < SlackError; end
|
166
197
|
class MessageNotFound < SlackError; end
|
198
|
+
class MethodDeprecated < SlackError; end
|
167
199
|
class MethodNotSupportedForChannelType < SlackError; end
|
168
200
|
class MigrationInProgress < SlackError; end
|
201
|
+
class MissingArgument < SlackError; end
|
169
202
|
class MissingChannel < SlackError; end
|
170
203
|
class MissingDialog < SlackError; end
|
171
204
|
class MissingDuration < SlackError; end
|
172
205
|
class MissingPostType < SlackError; end
|
206
|
+
class MissingResource < SlackError; end
|
173
207
|
class MissingScope < SlackError; end
|
174
208
|
class MissingTrigger < SlackError; end
|
175
209
|
class MissingTs < SlackError; end
|
@@ -188,6 +222,7 @@ module Slack
|
|
188
222
|
class NoPermission < SlackError; end
|
189
223
|
class NoReaction < SlackError; end
|
190
224
|
class NoSuchSubteam < SlackError; end
|
225
|
+
class NoTeamIdsGiven < SlackError; end
|
191
226
|
class NoText < SlackError; end
|
192
227
|
class NoUser < SlackError; end
|
193
228
|
class NoUserProvided < SlackError; end
|
@@ -195,6 +230,7 @@ module Slack
|
|
195
230
|
class NotAllowed < SlackError; end
|
196
231
|
class NotAllowedTokenType < SlackError; end
|
197
232
|
class NotAnAdmin < SlackError; end
|
233
|
+
class NotAnEnterprise < SlackError; end
|
198
234
|
class NotAppAdmin < SlackError; end
|
199
235
|
class NotArchived < SlackError; end
|
200
236
|
class NotAuthed < SlackError; end
|
@@ -204,6 +240,7 @@ module Slack
|
|
204
240
|
class NotEnoughUsers < SlackError; end
|
205
241
|
class NotEnterpriseTeam < SlackError; end
|
206
242
|
class NotFound < SlackError; end
|
243
|
+
class NotImplemented < SlackError; end
|
207
244
|
class NotInChannel < SlackError; end
|
208
245
|
class NotInDnd < SlackError; end
|
209
246
|
class NotInGroup < SlackError; end
|
@@ -230,6 +267,7 @@ module Slack
|
|
230
267
|
class RequestIdRequiredForCustomIntegrations < SlackError; end
|
231
268
|
class RequestTimeout < SlackError; end
|
232
269
|
class ReservedName < SlackError; end
|
270
|
+
class ResizedButStillTooLarge < SlackError; end
|
233
271
|
class RestrictedAction < SlackError; end
|
234
272
|
class RestrictedActionNonThreadableChannel < SlackError; end
|
235
273
|
class RestrictedActionReadOnlyChannel < SlackError; end
|
@@ -261,15 +299,19 @@ module Slack
|
|
261
299
|
class TriggerExchanged < SlackError; end
|
262
300
|
class TriggerExpired < SlackError; end
|
263
301
|
class UnableToLeaveLastTeam < SlackError; end
|
302
|
+
class UnableToLinkIdpGroupAndChannel < SlackError; end
|
303
|
+
class UnableToUnlinkIdpGroupAndChannel < SlackError; end
|
264
304
|
class UnknownMethod < SlackError; end
|
265
305
|
class UnknownType < SlackError; end
|
266
306
|
class UnsupportedArguments < SlackError; end
|
307
|
+
class UpdateFailed < SlackError; end
|
267
308
|
class UraMaxChannels < SlackError; end
|
268
309
|
class UserAlreadyDeleted < SlackError; end
|
269
310
|
class UserAlreadyTeamMember < SlackError; end
|
270
311
|
class UserDisabled < SlackError; end
|
271
312
|
class UserDoesNotOwnChannel < SlackError; end
|
272
313
|
class UserIsAlreadyDeleted < SlackError; end
|
314
|
+
class UserIsBot < SlackError; end
|
273
315
|
class UserIsNotAGuest < SlackError; end
|
274
316
|
class UserIsRestricted < SlackError; end
|
275
317
|
class UserIsUltraRestricted < SlackError; end
|
@@ -277,6 +319,9 @@ module Slack
|
|
277
319
|
class UserNotInChannel < SlackError; end
|
278
320
|
class UserNotVisible < SlackError; end
|
279
321
|
class UserSessionResetFailed < SlackError; end
|
322
|
+
class UsergroupNotFound < SlackError; end
|
323
|
+
class UsergroupNotLinkedToTeam < SlackError; end
|
324
|
+
class UsergroupTeamNotProvisioned < SlackError; end
|
280
325
|
class UsersListNotSupplied < SlackError; end
|
281
326
|
class UsersNotFound < SlackError; end
|
282
327
|
class ValidationErrors < SlackError; end
|
@@ -295,7 +340,9 @@ module Slack
|
|
295
340
|
'already_starred' => AlreadyStarred,
|
296
341
|
'app_management_app_not_installed_on_org' => AppManagementAppNotInstalledOnOrg,
|
297
342
|
'app_missing_action_url' => AppMissingActionUrl,
|
343
|
+
'app_restricted_org_wide' => AppRestrictedOrgWide,
|
298
344
|
'as_user_not_supported' => AsUserNotSupported,
|
345
|
+
'auto_provision_failure' => AutoProvisionFailure,
|
299
346
|
'bad_client_secret' => BadClientSecret,
|
300
347
|
'bad_image' => BadImage,
|
301
348
|
'bad_redirect_uri' => BadRedirectUri,
|
@@ -303,8 +350,11 @@ module Slack
|
|
303
350
|
'bad_title' => BadTitle,
|
304
351
|
'bad_token' => BadToken,
|
305
352
|
'bad_url' => BadUrl,
|
353
|
+
'bad_users' => BadUsers,
|
306
354
|
'bot_not_found' => BotNotFound,
|
307
355
|
'cannot_add_bot' => CannotAddBot,
|
356
|
+
'cannot_add_more_channels_to_group' => CannotAddMoreChannelsToGroup,
|
357
|
+
'cannot_add_more_groups_to_channel' => CannotAddMoreGroupsToChannel,
|
308
358
|
'cannot_add_others' => CannotAddOthers,
|
309
359
|
'cannot_add_others_recurring' => CannotAddOthersRecurring,
|
310
360
|
'cannot_add_slackbot' => CannotAddSlackbot,
|
@@ -314,11 +364,15 @@ module Slack
|
|
314
364
|
'cannot_find_channel' => CannotFindChannel,
|
315
365
|
'cannot_find_message' => CannotFindMessage,
|
316
366
|
'cannot_find_service' => CannotFindService,
|
367
|
+
'cannot_install_an_org_installed_app' => CannotInstallAnOrgInstalledApp,
|
317
368
|
'cannot_modify_primary_owner' => CannotModifyPrimaryOwner,
|
369
|
+
'cannot_move_local_channel' => CannotMoveLocalChannel,
|
318
370
|
'cannot_parse' => CannotParse,
|
319
371
|
'cannot_parse_attachment' => CannotParseAttachment,
|
320
372
|
'cannot_prompt' => CannotPrompt,
|
373
|
+
'cannot_reset_bot' => CannotResetBot,
|
321
374
|
'cannot_reset_primary_owner' => CannotResetPrimaryOwner,
|
375
|
+
'cannot_unfurl_message' => CannotUnfurlMessage,
|
322
376
|
'cannot_unfurl_url' => CannotUnfurlUrl,
|
323
377
|
'cannot_update_admin_user' => CannotUpdateAdminUser,
|
324
378
|
'cant_archive_general' => CantArchiveGeneral,
|
@@ -332,13 +386,15 @@ module Slack
|
|
332
386
|
'cant_leave_general' => CantLeaveGeneral,
|
333
387
|
'cant_update_message' => CantUpdateMessage,
|
334
388
|
'channel_cannot_be_unshared' => ChannelCannotBeUnshared,
|
389
|
+
'channel_is_not_private' => ChannelIsNotPrivate,
|
335
390
|
'channel_not_found' => ChannelNotFound,
|
336
|
-
'channel_not_shared_with_team' => ChannelNotSharedWithTeam,
|
337
391
|
'channel_type_not_supported' => ChannelTypeNotSupported,
|
338
392
|
'client_id_token_mismatch' => ClientIdTokenMismatch,
|
339
393
|
'code_already_used' => CodeAlreadyUsed,
|
340
394
|
'compliance_exports_prevent_deletion' => ComplianceExportsPreventDeletion,
|
341
395
|
'could_not_create_workspace' => CouldNotCreateWorkspace,
|
396
|
+
'could_not_set_teams_for_channel' => CouldNotSetTeamsForChannel,
|
397
|
+
'default_channel_restricted' => DefaultChannelRestricted,
|
342
398
|
'default_org_wide_channel' => DefaultOrgWideChannel,
|
343
399
|
'discoverability_setting_invalid' => DiscoverabilitySettingInvalid,
|
344
400
|
'domain_taken' => DomainTaken,
|
@@ -361,23 +417,27 @@ module Slack
|
|
361
417
|
'error_no_image' => ErrorNoImage,
|
362
418
|
'error_too_big' => ErrorTooBig,
|
363
419
|
'external_channel_migrating' => ExternalChannelMigrating,
|
420
|
+
'externally_shared_or_disconnected_channel' => ExternallySharedOrDisconnectedChannel,
|
364
421
|
'failed_looking_up_user' => FailedLookingUpUser,
|
365
422
|
'failed_sending_dialog' => FailedSendingDialog,
|
366
423
|
'failed_to_add_emoji' => FailedToAddEmoji,
|
367
424
|
'failed_to_alias_emoji' => FailedToAliasEmoji,
|
368
425
|
'failed_to_fetch_active_team' => FailedToFetchActiveTeam,
|
369
426
|
'failed_to_fetch_info' => FailedToFetchInfo,
|
427
|
+
'failed_to_remove_group_users' => FailedToRemoveGroupUsers,
|
370
428
|
'failed_to_remove_user_from_workspace' => FailedToRemoveUserFromWorkspace,
|
371
429
|
'failed_to_rename_emoji' => FailedToRenameEmoji,
|
372
430
|
'failed_to_send_invite' => FailedToSendInvite,
|
373
431
|
'failed_to_set_default_channels' => FailedToSetDefaultChannels,
|
374
432
|
'failed_to_set_description' => FailedToSetDescription,
|
375
433
|
'failed_to_set_discoverability' => FailedToSetDiscoverability,
|
434
|
+
'failed_to_set_expiration' => FailedToSetExpiration,
|
376
435
|
'failed_to_set_icon' => FailedToSetIcon,
|
377
436
|
'failed_to_set_name' => FailedToSetName,
|
378
437
|
'failed_to_set_user_to_admin' => FailedToSetUserToAdmin,
|
379
438
|
'failed_to_set_user_to_owner' => FailedToSetUserToOwner,
|
380
439
|
'failed_to_set_user_to_regular' => FailedToSetUserToRegular,
|
440
|
+
'failed_to_unlink_channel' => FailedToUnlinkChannel,
|
381
441
|
'failed_to_validate_caller' => FailedToValidateCaller,
|
382
442
|
'failed_to_validate_channels' => FailedToValidateChannels,
|
383
443
|
'failed_to_validate_custom_message' => FailedToValidateCustomMessage,
|
@@ -392,17 +452,28 @@ module Slack
|
|
392
452
|
'file_not_found' => FileNotFound,
|
393
453
|
'file_not_shared' => FileNotShared,
|
394
454
|
'file_under_review' => FileUnderReview,
|
455
|
+
'group_already_linked_to_channel' => GroupAlreadyLinkedToChannel,
|
395
456
|
'group_contains_others' => GroupContainsOthers,
|
457
|
+
'group_must_not_be_empty' => GroupMustNotBeEmpty,
|
458
|
+
'group_not_found' => GroupNotFound,
|
396
459
|
'hash_conflict' => HashConflict,
|
460
|
+
'inactive_call' => InactiveCall,
|
461
|
+
'internal_error' => InternalError,
|
462
|
+
'invalid_actor' => InvalidActor,
|
397
463
|
'invalid_app_id' => InvalidAppId,
|
398
464
|
'invalid_arg_name' => InvalidArgName,
|
399
465
|
'invalid_arguments' => InvalidArguments,
|
466
|
+
'invalid_attachments' => InvalidAttachments,
|
400
467
|
'invalid_auth' => InvalidAuth,
|
468
|
+
'invalid_blocks' => InvalidBlocks,
|
469
|
+
'invalid_call_id' => InvalidCallId,
|
401
470
|
'invalid_channel' => InvalidChannel,
|
402
471
|
'invalid_channel_id' => InvalidChannelId,
|
472
|
+
'invalid_channels_limit' => InvalidChannelsLimit,
|
403
473
|
'invalid_charset' => InvalidCharset,
|
404
474
|
'invalid_client_id' => InvalidClientId,
|
405
475
|
'invalid_code' => InvalidCode,
|
476
|
+
'invalid_created_by' => InvalidCreatedBy,
|
406
477
|
'invalid_cursor' => InvalidCursor,
|
407
478
|
'invalid_email' => InvalidEmail,
|
408
479
|
'invalid_external_id' => InvalidExternalId,
|
@@ -423,15 +494,19 @@ module Slack
|
|
423
494
|
'invalid_role_for_user' => InvalidRoleForUser,
|
424
495
|
'invalid_scheduled_message_id' => InvalidScheduledMessageId,
|
425
496
|
'invalid_scope' => InvalidScope,
|
497
|
+
'invalid_start_time' => InvalidStartTime,
|
426
498
|
'invalid_target_team' => InvalidTargetTeam,
|
499
|
+
'invalid_team_ids' => InvalidTeamIds,
|
427
500
|
'invalid_time' => InvalidTime,
|
428
501
|
'invalid_timestamp' => InvalidTimestamp,
|
429
502
|
'invalid_trigger' => InvalidTrigger,
|
430
503
|
'invalid_ts_latest' => InvalidTsLatest,
|
431
504
|
'invalid_ts_oldest' => InvalidTsOldest,
|
432
505
|
'invalid_types' => InvalidTypes,
|
506
|
+
'invalid_unfurls_format' => InvalidUnfurlsFormat,
|
433
507
|
'invalid_url' => InvalidUrl,
|
434
508
|
'invalid_user' => InvalidUser,
|
509
|
+
'invalid_user_combination' => InvalidUserCombination,
|
435
510
|
'invalid_users' => InvalidUsers,
|
436
511
|
'invited_user_not_created' => InvitedUserNotCreated,
|
437
512
|
'invited_user_not_reactivated' => InvitedUserNotReactivated,
|
@@ -441,13 +516,17 @@ module Slack
|
|
441
516
|
'is_inactive' => IsInactive,
|
442
517
|
'last_member' => LastMember,
|
443
518
|
'limit_required' => LimitRequired,
|
519
|
+
'link_not_found' => LinkNotFound,
|
444
520
|
'message_not_found' => MessageNotFound,
|
521
|
+
'method_deprecated' => MethodDeprecated,
|
445
522
|
'method_not_supported_for_channel_type' => MethodNotSupportedForChannelType,
|
446
523
|
'migration_in_progress' => MigrationInProgress,
|
524
|
+
'missing_argument' => MissingArgument,
|
447
525
|
'missing_channel' => MissingChannel,
|
448
526
|
'missing_dialog' => MissingDialog,
|
449
527
|
'missing_duration' => MissingDuration,
|
450
528
|
'missing_post_type' => MissingPostType,
|
529
|
+
'missing_resource' => MissingResource,
|
451
530
|
'missing_scope' => MissingScope,
|
452
531
|
'missing_trigger' => MissingTrigger,
|
453
532
|
'missing_ts' => MissingTs,
|
@@ -466,6 +545,7 @@ module Slack
|
|
466
545
|
'no_permission' => NoPermission,
|
467
546
|
'no_reaction' => NoReaction,
|
468
547
|
'no_such_subteam' => NoSuchSubteam,
|
548
|
+
'no_team_ids_given' => NoTeamIdsGiven,
|
469
549
|
'no_text' => NoText,
|
470
550
|
'no_user' => NoUser,
|
471
551
|
'no_user_provided' => NoUserProvided,
|
@@ -473,6 +553,7 @@ module Slack
|
|
473
553
|
'not_allowed' => NotAllowed,
|
474
554
|
'not_allowed_token_type' => NotAllowedTokenType,
|
475
555
|
'not_an_admin' => NotAnAdmin,
|
556
|
+
'not_an_enterprise' => NotAnEnterprise,
|
476
557
|
'not_app_admin' => NotAppAdmin,
|
477
558
|
'not_archived' => NotArchived,
|
478
559
|
'not_authed' => NotAuthed,
|
@@ -482,6 +563,7 @@ module Slack
|
|
482
563
|
'not_enough_users' => NotEnoughUsers,
|
483
564
|
'not_enterprise_team' => NotEnterpriseTeam,
|
484
565
|
'not_found' => NotFound,
|
566
|
+
'not_implemented' => NotImplemented,
|
485
567
|
'not_in_channel' => NotInChannel,
|
486
568
|
'not_in_dnd' => NotInDnd,
|
487
569
|
'not_in_group' => NotInGroup,
|
@@ -508,6 +590,7 @@ module Slack
|
|
508
590
|
'request_id_required_for_custom_integrations' => RequestIdRequiredForCustomIntegrations,
|
509
591
|
'request_timeout' => RequestTimeout,
|
510
592
|
'reserved_name' => ReservedName,
|
593
|
+
'resized_but_still_too_large' => ResizedButStillTooLarge,
|
511
594
|
'restricted_action' => RestrictedAction,
|
512
595
|
'restricted_action_non_threadable_channel' => RestrictedActionNonThreadableChannel,
|
513
596
|
'restricted_action_read_only_channel' => RestrictedActionReadOnlyChannel,
|
@@ -539,15 +622,19 @@ module Slack
|
|
539
622
|
'trigger_exchanged' => TriggerExchanged,
|
540
623
|
'trigger_expired' => TriggerExpired,
|
541
624
|
'unable_to_leave_last_team' => UnableToLeaveLastTeam,
|
625
|
+
'unable_to_link_idp_group_and_channel' => UnableToLinkIdpGroupAndChannel,
|
626
|
+
'unable_to_unlink_idp_group_and_channel' => UnableToUnlinkIdpGroupAndChannel,
|
542
627
|
'unknown_method' => UnknownMethod,
|
543
628
|
'unknown_type' => UnknownType,
|
544
629
|
'unsupported_arguments' => UnsupportedArguments,
|
630
|
+
'update_failed' => UpdateFailed,
|
545
631
|
'ura_max_channels' => UraMaxChannels,
|
546
632
|
'user_already_deleted' => UserAlreadyDeleted,
|
547
633
|
'user_already_team_member' => UserAlreadyTeamMember,
|
548
634
|
'user_disabled' => UserDisabled,
|
549
635
|
'user_does_not_own_channel' => UserDoesNotOwnChannel,
|
550
636
|
'user_is_already_deleted' => UserIsAlreadyDeleted,
|
637
|
+
'user_is_bot' => UserIsBot,
|
551
638
|
'user_is_not_a_guest' => UserIsNotAGuest,
|
552
639
|
'user_is_restricted' => UserIsRestricted,
|
553
640
|
'user_is_ultra_restricted' => UserIsUltraRestricted,
|
@@ -555,6 +642,9 @@ module Slack
|
|
555
642
|
'user_not_in_channel' => UserNotInChannel,
|
556
643
|
'user_not_visible' => UserNotVisible,
|
557
644
|
'user_session_reset_failed' => UserSessionResetFailed,
|
645
|
+
'usergroup_not_found' => UsergroupNotFound,
|
646
|
+
'usergroup_not_linked_to_team' => UsergroupNotLinkedToTeam,
|
647
|
+
'usergroup_team_not_provisioned' => UsergroupTeamNotProvisioned,
|
558
648
|
'users_list_not_supplied' => UsersListNotSupplied,
|
559
649
|
'users_not_found' => UsersNotFound,
|
560
650
|
'validation_errors' => ValidationErrors,
|