Slack.Web.Dnd.set_snooze

You're seeing just the function set_snooze, go back to Slack.Web.Dnd module for more information.
Link to this function

set_snooze(num_minutes, optional_params \\ %{})

View Source

Turns on Do Not Disturb mode for the current user, or changes its duration.

Required Params

  • num_minutes - Number of minutes, from now, to snooze until. ex: 60

Errors the API can return:

  • missing_duration - No value provided for num_minutes
  • snooze_failed - There was a problem setting the user's Do Not Disturb status