yannickglt / alfred-slack

The Slack workflow for Alfred app
GNU General Public License v2.0
330 stars 31 forks source link

Toggle DND #43

Open ubuntudroid opened 6 years ago

ubuntudroid commented 6 years ago

Right now it doesn't seem to be possible to enable DND via the workflow.

The according endpoints would be

https://api.slack.com/methods/dnd.setSnooze

and

https://api.slack.com/methods/dnd.endDnd or https://api.slack.com/methods/dnd.endSnooze

In my own scripts I was always using the dnd.endDnd endpoint, but it might just be an alias for the dnd.endSnooze one.

filipruisl commented 5 years ago

+1 for implementing this