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
Specs
endDnd(Slack.Client.t, Keyword.t) :: Slack.response
End the user’s Do Not Disturb session.
https://api.slack.com/methods/dnd.endDnd
Examples
Slack.client(token)
|> Slack.DND.endDnd
Specs
endSnooze(Slack.Client.t, Keyword.t) :: Slack.response
End the user’s snooze mode.
https://api.slack.com/methods/dnd.endSnooze
Examples
Slack.client(token)
|> Slack.DND.endSnooze
Specs
info(Slack.Client.t, Keyword.t) :: Slack.response
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")
Specs
setSnooze(Slack.Client.t, Keyword.t) :: Slack.response
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)
Specs
teamInfo(Slack.Client.t, Keyword.t) :: Slack.response
Get information about Do Not Disturb settings for a team.
https://api.slack.com/methods/dnd.teamInfo
Examples
Slack.client(token)
|> Slack.DND.teamInfo