Slack v0.2.1 Slack.DND View Source

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

Link to this section 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.

Link to this section Functions

End the user's Do Not Disturb session.

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

Examples

Slack.client(token)
|> Slack.DND.endDnd
Link to this function

endSnooze(client, body \\ [])

View Source

End the user's snooze mode.

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

Examples

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

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")
Link to this function

setSnooze(client, body \\ [])

View Source

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)

Get information about Do Not Disturb settings for a team.

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

Examples

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