You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,7 @@
3
3
*[#293](https://github.com/slack-ruby/slack-ruby-client/pull/293): Rubocop auto-correct and comprehensive todo - [@jcraigk](https://github.com/jcraigk).
4
4
*[#297](https://github.com/slack-ruby/slack-ruby-client/pull/297): Various Rubocop fixes - [@jcraigk](https://github.com/jcraigk).
5
5
*[#298](https://github.com/slack-ruby/slack-ruby-client/pull/298): Add `admin.apps`, `admin.app.requests` and `views` endpoints - [@jmanian](https://github.com/jmanian).
6
+
*[#302](https://github.com/slack-ruby/slack-ruby-client/pull/302): Add `oauth.v2.access` and `views.published` endpoints - [@jwright](https://github.com/jwright).
Copy file name to clipboardExpand all lines: bin/commands/reactions.rb
+1-3Lines changed: 1 addition & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -6,10 +6,8 @@
6
6
g.desc'Adds a reaction to an item.'
7
7
g.long_desc%( Adds a reaction to an item. )
8
8
g.command'add'do |c|
9
-
c.flag'name',desc: 'Reaction (emoji) name.'
10
9
c.flag'channel',desc: 'Channel where the message to add reaction to was posted.'
11
-
c.flag'file',desc: "File to add reaction to. Now that file threads work the way you'd expect, this argument is deprecated. Specify the timestamp and channel of the message associated with a file instead."
12
-
c.flag'file_comment',desc: "File comment to add reaction to. Now that file threads work the way you'd expect, this argument is deprecated. Specify the timestamp and channel of the message associated with a file instead."
10
+
c.flag'name',desc: 'Reaction (emoji) name.'
13
11
c.flag'timestamp',desc: 'Timestamp of the message to add reaction to.'
Copy file name to clipboardExpand all lines: bin/commands/views.rb
+14-3Lines changed: 14 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -7,17 +7,28 @@
7
7
g.long_desc%( Open a view for a user. )
8
8
g.command'open'do |c|
9
9
c.flag'trigger_id',desc: 'Exchange a trigger to post to the user.'
10
-
c.flag'view',desc: 'The view payload. This must be a JSON-encoded string.'
10
+
c.flag'view',desc: 'A view payload. This must be a JSON-encoded string.'
11
11
c.actiondo |_global_options,options,_args|
12
12
putsJSON.dump($client.views_open(options))
13
13
end
14
14
end
15
15
16
+
g.desc'Publish a static view for a User.'
17
+
g.long_desc%( Publish a static view for a User. )
18
+
g.command'publish'do |c|
19
+
c.flag'user_id',desc: 'id of the user you want publish a view to.'
20
+
c.flag'view',desc: 'A view payload. This must be a JSON-encoded string.'
21
+
c.flag'hash',desc: 'A string that represents view state to protect against possible race conditions.'
22
+
c.actiondo |_global_options,options,_args|
23
+
putsJSON.dump($client.views_publish(options))
24
+
end
25
+
end
26
+
16
27
g.desc'Push a view onto the stack of a root view.'
17
28
g.long_desc%( Push a view onto the stack of a root view. )
18
29
g.command'push'do |c|
19
30
c.flag'trigger_id',desc: 'Exchange a trigger to post to the user.'
20
-
c.flag'view',desc: 'The view payload. This must be a JSON-encoded string.'
31
+
c.flag'view',desc: 'A view payload. This must be a JSON-encoded string.'
21
32
c.actiondo |_global_options,options,_args|
22
33
putsJSON.dump($client.views_push(options))
23
34
end
@@ -26,7 +37,7 @@
26
37
g.desc'Update an existing view.'
27
38
g.long_desc%( Update an existing view. )
28
39
g.command'update'do |c|
29
-
c.flag'view',desc: 'The view payload. This must be a JSON-encoded string.'
40
+
c.flag'view',desc: 'A view payload This must be a JSON-encoded string.'
30
41
c.flag'external_id',desc: 'A unique identifier of the view set by the developer. Must be unique for all views on a team. Max length of 255 characters. Either view_id or external_id is required.'
31
42
c.flag'hash',desc: 'A string that represents view state to protect against possible race conditions.'
32
43
c.flag'view_id',desc: 'A unique identifier of the view to be updated. Either view_id or external_id is required.'
Copy file name to clipboardExpand all lines: lib/slack/web/api/endpoints/reactions.rb
+4-6Lines changed: 4 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -9,20 +9,18 @@ module Reactions
9
9
#
10
10
# Adds a reaction to an item.
11
11
#
12
-
# @option options [Object] :name
13
-
# Reaction (emoji) name.
14
12
# @option options [channel] :channel
15
13
# Channel where the message to add reaction to was posted.
16
-
# @option options [file] :file
17
-
# File to add reaction to. Now that file threads work the way you'd expect, this argument is deprecated. Specify the timestamp and channel of the message associated with a file instead.
18
-
# @option options [Object] :file_comment
19
-
# File comment to add reaction to. Now that file threads work the way you'd expect, this argument is deprecated. Specify the timestamp and channel of the message associated with a file instead.
# The view payload. This must be a JSON-encoded string.
75
+
# A view payload This must be a JSON-encoded string.
54
76
# @option options [Object] :external_id
55
77
# A unique identifier of the view set by the developer. Must be unique for all views on a team. Max length of 255 characters. Either view_id or external_id is required.
0 commit comments