Skip to content

Commit

Permalink
Update API from slack-api-ref@d3eba1e (2023-10-04)
Browse files Browse the repository at this point in the history
  • Loading branch information
web-flow committed Oct 4, 2023
1 parent fc3f81c commit 82def6d
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions bin/commands/admin_conversations.rb
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ class App
c.flag 'sort', desc: 'Possible values are relevant (search ranking based on what we think is closest), name (alphabetical), member_count (number of users in the channel), and created (date channel was created). You can optionally pair this with the sort_dir arg to change how it is sorted.'
c.flag 'sort_dir', desc: 'Sort direction. Possible values are asc for ascending order like (1, 2, 3) or (a, b, c), and desc for descending order like (3, 2, 1) or (c, b, a).'
c.flag 'team_ids', desc: 'Comma separated string of team IDs, signifying the internal workspaces to search through.'
c.flag 'total_count_only', desc: 'Only return the total_count of channels. Omits channel data and allows access for admins without channel manager permissions.'
c.action do |_global_options, options, _args|
puts JSON.dump(@client.admin_conversations_search(options))
end
Expand Down
1 change: 1 addition & 0 deletions bin/commands/chat.rb
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ class App
c.flag 'mrkdwn', desc: 'Disable Slack markup parsing by setting to false. Enabled by default.'
c.flag 'parse', desc: 'Change how messages are treated. See below.'
c.flag 'reply_broadcast', desc: 'Used in conjunction with thread_ts and indicates whether reply should be made visible to everyone in the channel or conversation. Defaults to false.'
c.flag 'service_team_id', desc: 'For a message posted in App Home, Team ID corresponding to the selected app installation.'
c.flag 'thread_ts', desc: "Provide another message's ts value to make this message a reply. Avoid using a reply's ts value; use its parent instead."
c.flag 'unfurl_links', desc: 'Pass true to enable unfurling of primarily text-based content.'
c.flag 'unfurl_media', desc: 'Pass false to disable unfurling of media content.'
Expand Down
2 changes: 2 additions & 0 deletions lib/slack/web/api/endpoints/admin_conversations.rb
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,8 @@ def admin_conversations_rename(options = {})
# Sort direction. Possible values are asc for ascending order like (1, 2, 3) or (a, b, c), and desc for descending order like (3, 2, 1) or (c, b, a).
# @option options [array] :team_ids
# Comma separated string of team IDs, signifying the internal workspaces to search through.
# @option options [boolean] :total_count_only
# Only return the total_count of channels. Omits channel data and allows access for admins without channel manager permissions.
# @see https://api.slack.com/methods/admin.conversations.search
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.conversations/admin.conversations.search.json
def admin_conversations_search(options = {})
Expand Down
2 changes: 2 additions & 0 deletions lib/slack/web/api/endpoints/chat.rb
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,8 @@ def chat_postEphemeral(options = {})
# Change how messages are treated. See below.
# @option options [boolean] :reply_broadcast
# Used in conjunction with thread_ts and indicates whether reply should be made visible to everyone in the channel or conversation. Defaults to false.
# @option options [string] :service_team_id
# For a message posted in App Home, Team ID corresponding to the selected app installation.
# @option options [string] :thread_ts
# Provide another message's ts value to make this message a reply. Avoid using a reply's ts value; use its parent instead.
# @option options [boolean] :unfurl_links
Expand Down
2 changes: 1 addition & 1 deletion lib/slack/web/api/slack-api-ref
Submodule slack-api-ref updated 170 files

0 comments on commit 82def6d

Please sign in to comment.