dnd.setSnooze
method
Welcome to the new home of Slack developer docs!
We're still building and not all features are available quite yet. Enjoy this peek into the future!
Not ready for the future? Return to the past at api.slack.com.
Usage info
Adjusts the snooze duration for a user's Do Not Disturb settings. If a snooze session is not already active for the user, invoking this method will begin one for the specified duration.
Response
{
"ok": true,
"snooze_enabled": true,
"snooze_endtime": 1450373897,
"snooze_remaining": 60,
"snooze_is_indefinite": false // There is no way to set this to true.
}
The snooze_remaining
field is expressed in seconds. If your request presents a num_minutes
value of 1
, the response's snooze_remaining
will be 60
.