provider dnd POST /dnd.setSnooze
@utdk/slack /dnd.setSnooze
dnd_setSnooze
Turns on Do Not Disturb mode for the current user, or changes its duration.

Try it

Authentication
Configure credentials for Slack Web API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

dndSetsnooze
POST/dnd.setSnooze
Turns on Do Not Disturb mode for the current user, or changes its duration.

Input

required

Number of minutes, from now, to snooze until.

required

Authentication token. Requires scope: `dnd:write`

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import slack from '@utdk/slack';

await slack.dndSetsnooze()