Slack v0.0.12 Slack.DND

Functions for working with the user’s Do Not Disturb session

Summary

Functions

End the user’s Do Not Disturb session

End the user’s snooze mode

Get information on the user’s Do Not Disturb settings

Adjust the snooze duration for the user’s Do Not Disturb settings

Get information about Do Not Disturb settings for a team

Functions

endDnd(client, body \\ [])

End the user’s Do Not Disturb session.

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

Examples

Slack.client(token)
|> Slack.DND.endDnd
endSnooze(client, body \\ [])

Specs

End the user’s snooze mode.

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

Examples

Slack.client(token)
|> Slack.DND.endSnooze
info(client, query \\ [])

Get information on the user’s Do Not Disturb settings.

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

Examples

Slack.client(token)
|> Slack.DND.info(user: "U1234")
setSnooze(client, body \\ [])

Specs

Adjust the snooze duration for the user’s Do Not Disturb settings.

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

Examples

Slack.client(token)
|> Slack.DND.setSnooze(num_minutes: 30)
teamInfo(client, query \\ [])

Get information about Do Not Disturb settings for a team.

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

Examples

Slack.client(token)
|> Slack.DND.teamInfo