diff --git a/CHANGELOG.md b/CHANGELOG.md index 4b2632b7..5a1ddfd8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ * [#491](https://github.com/slack-ruby/slack-ruby-client/pull/491): Added code coverage - [@dblock](https://github.com/dblock). * [#486](https://github.com/slack-ruby/slack-ruby-client/pull/486): Async handler support for Slack::RealTime::Config and Client - [@milestruecar](https://github.com/milestruecar). * [#489](https://github.com/slack-ruby-client/pulls/489): Update API from [slack-api-ref@0d3f0b6](https://github.com/slack-ruby/slack-api-ref/commit/0d3f0b6) - [@slack-ruby-ci-bot](https://github.com/apps/slack-ruby-ci-bot). +* [#493](https://github.com/slack-ruby-client/pulls/493): Update API from [slack-api-ref@f2e768a](https://github.com/slack-ruby/slack-api-ref/commit/f2e768a) - [@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/dnd.rb b/bin/commands/dnd.rb index 41f904a6..6c00aaa0 100644 --- a/bin/commands/dnd.rb +++ b/bin/commands/dnd.rb @@ -35,7 +35,7 @@ class App g.desc 'Turns on Do Not Disturb mode for the current user, or changes its duration.' g.long_desc %( Turns on Do Not Disturb mode for the current user, or changes its duration. ) g.command 'setSnooze' do |c| - c.flag 'num_minutes', desc: 'Number of minutes, from now, to snooze until.' + c.flag 'num_minutes', desc: 'This argument is required. Number of minutes, from now, to snooze until.' c.action do |_global_options, options, _args| puts JSON.dump(@client.dnd_setSnooze(options)) end diff --git a/lib/slack/web/api/endpoints/dnd.rb b/lib/slack/web/api/endpoints/dnd.rb index 13ed42b8..0b1229d7 100644 --- a/lib/slack/web/api/endpoints/dnd.rb +++ b/lib/slack/web/api/endpoints/dnd.rb @@ -42,7 +42,7 @@ def dnd_info(options = {}) # Turns on Do Not Disturb mode for the current user, or changes its duration. # # @option options [string] :num_minutes - # Number of minutes, from now, to snooze until. + # This argument is required. Number of minutes, from now, to snooze until. # @see https://api.slack.com/methods/dnd.setSnooze # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/dnd/dnd.setSnooze.json def dnd_setSnooze(options = {}) diff --git a/lib/slack/web/api/slack-api-ref b/lib/slack/web/api/slack-api-ref index f2e768a8..fc297d16 160000 --- a/lib/slack/web/api/slack-api-ref +++ b/lib/slack/web/api/slack-api-ref @@ -1 +1 @@ -Subproject commit f2e768a8c3e1d5106a600ce2414b48e986b7d39a +Subproject commit fc297d162f74f0c32a9ae41d7fb7911ac2581abe