diff --git a/CHANGELOG.md b/CHANGELOG.md index 0262a86d..ed31ec0c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ * [#474](https://github.com/slack-ruby-client/pulls/474): Update API from [slack-api-ref@629967e](https://github.com/slack-ruby/slack-api-ref/commit/629967e) - [@slack-ruby-ci-bot](https://github.com/apps/slack-ruby-ci-bot). * [#475](https://github.com/slack-ruby-client/pulls/475): Update API from [slack-api-ref@977dad5](https://github.com/slack-ruby/slack-api-ref/commit/977dad5) - [@slack-ruby-ci-bot](https://github.com/apps/slack-ruby-ci-bot). * [#476](https://github.com/slack-ruby-client/pulls/476): Update API from [slack-api-ref@d0b2989](https://github.com/slack-ruby/slack-api-ref/commit/d0b2989) - [@slack-ruby-ci-bot](https://github.com/apps/slack-ruby-ci-bot). +* [#478](https://github.com/slack-ruby-client/pulls/478): Update API from [slack-api-ref@d797055](https://github.com/slack-ruby/slack-api-ref/commit/d797055) - [@slack-ruby-ci-bot](https://github.com/apps/slack-ruby-ci-bot). * Your contribution here. ### 2.1.0 (2023/03/17) diff --git a/bin/commands/calls.rb b/bin/commands/calls.rb index f4d2d921..11e19ce4 100644 --- a/bin/commands/calls.rb +++ b/bin/commands/calls.rb @@ -12,7 +12,7 @@ class App c.flag 'external_unique_id', desc: 'An ID supplied by the 3rd-party Call provider. It must be unique across all Calls from that service.' c.flag 'join_url', desc: 'The URL required for a client to join the Call.' c.flag 'created_by', desc: 'The valid Slack user ID of the user who created this Call. When this method is called with a user token, the created_by field is optional and defaults to the authed user of the token. Otherwise, the field is required.' - c.flag 'date_start', desc: 'Call start time in UTC UNIX timestamp format.' + c.flag 'date_start', desc: 'Unix timestamp of the call start time.' c.flag 'desktop_app_join_url', desc: 'When supplied, available Slack clients will attempt to directly launch the 3rd-party Call with this URL.' c.flag 'external_display_id', desc: 'An optional, human-readable ID supplied by the 3rd-party Call provider. If supplied, this ID will be displayed in the Call object.' c.flag 'title', desc: 'The name of the Call.' diff --git a/bin/commands/chat_scheduledMessages.rb b/bin/commands/chat_scheduledMessages.rb index ddce74f7..9ed37cb6 100644 --- a/bin/commands/chat_scheduledMessages.rb +++ b/bin/commands/chat_scheduledMessages.rb @@ -11,9 +11,9 @@ class App g.command 'list' do |c| c.flag 'channel', desc: 'The channel of the scheduled messages.' c.flag 'cursor', desc: 'For pagination purposes, this is the cursor value returned from a previous call to chat.scheduledmessages.list indicating where you want to start this call from.' - c.flag 'latest', desc: 'A UNIX timestamp of the latest value in the time range.' + c.flag 'latest', desc: 'A Unix timestamp of the latest value in the time range.' c.flag 'limit', desc: 'Maximum number of original entries to return.' - c.flag 'oldest', desc: 'A UNIX timestamp of the oldest value in the time range.' + c.flag 'oldest', desc: 'A Unix timestamp of the oldest value in the time range.' c.flag 'team_id', desc: 'encoded team id to list channels in, required if org token is used.' c.action do |_global_options, options, _args| puts JSON.dump(@client.chat_scheduledMessages_list(options)) diff --git a/lib/slack/web/api/endpoints/calls.rb b/lib/slack/web/api/endpoints/calls.rb index ef69335a..af857cae 100644 --- a/lib/slack/web/api/endpoints/calls.rb +++ b/lib/slack/web/api/endpoints/calls.rb @@ -16,7 +16,7 @@ module Calls # @option options [string] :created_by # The valid Slack user ID of the user who created this Call. When this method is called with a user token, the created_by field is optional and defaults to the authed user of the token. Otherwise, the field is required. # @option options [integer] :date_start - # Call start time in UTC UNIX timestamp format. + # Unix timestamp of the call start time. # @option options [string] :desktop_app_join_url # When supplied, available Slack clients will attempt to directly launch the 3rd-party Call with this URL. # @option options [string] :external_display_id diff --git a/lib/slack/web/api/endpoints/chat_scheduledMessages.rb b/lib/slack/web/api/endpoints/chat_scheduledMessages.rb index 7e2a7df7..b2f29a55 100644 --- a/lib/slack/web/api/endpoints/chat_scheduledMessages.rb +++ b/lib/slack/web/api/endpoints/chat_scheduledMessages.rb @@ -14,11 +14,11 @@ module ChatScheduledmessages # @option options [string] :cursor # For pagination purposes, this is the cursor value returned from a previous call to chat.scheduledmessages.list indicating where you want to start this call from. # @option options [timestamp] :latest - # A UNIX timestamp of the latest value in the time range. + # A Unix timestamp of the latest value in the time range. # @option options [integer] :limit # Maximum number of original entries to return. # @option options [timestamp] :oldest - # A UNIX timestamp of the oldest value in the time range. + # A Unix timestamp of the oldest value in the time range. # @option options [string] :team_id # encoded team id to list channels in, required if org token is used. # @see https://api.slack.com/methods/chat.scheduledMessages.list diff --git a/lib/slack/web/api/errors.rb b/lib/slack/web/api/errors.rb index 9be897c9..9d75e038 100644 --- a/lib/slack/web/api/errors.rb +++ b/lib/slack/web/api/errors.rb @@ -78,6 +78,7 @@ class CannotMoveLocalChannel < SlackError; end class CannotParse < SlackError; end class CannotParseAttachment < SlackError; end class CannotPrompt < SlackError; end + class CannotReplyToMessage < SlackError; end class CannotResetBot < SlackError; end class CannotResetPrimaryOwner < SlackError; end class CannotResolveAlias < SlackError; end @@ -678,6 +679,7 @@ class WorkflowsExportCsvNotEnabled < SlackError; end 'cannot_parse' => CannotParse, 'cannot_parse_attachment' => CannotParseAttachment, 'cannot_prompt' => CannotPrompt, + 'cannot_reply_to_message' => CannotReplyToMessage, 'cannot_reset_bot' => CannotResetBot, 'cannot_reset_primary_owner' => CannotResetPrimaryOwner, 'cannot_resolve_alias' => CannotResolveAlias, diff --git a/lib/slack/web/api/slack-api-ref b/lib/slack/web/api/slack-api-ref index d7970554..7c22d0bf 160000 --- a/lib/slack/web/api/slack-api-ref +++ b/lib/slack/web/api/slack-api-ref @@ -1 +1 @@ -Subproject commit d7970554b32869a586921e7072b64ec37ee47092 +Subproject commit 7c22d0bf9325184ea40cfd4651aa9d6e67176d40