Module: Slack::Endpoint::Dnd
- Included in:
- Slack::Endpoint
- Defined in:
- lib/slack/endpoint/dnd.rb
Instance Method Summary collapse
-
#dnd_endDnd(options = {}) ⇒ Object
Ends the current user’s Do Not Disturb session immediately.
-
#dnd_endSnooze(options = {}) ⇒ Object
Ends the current user’s snooze mode immediately.
-
#dnd_info(options = {}) ⇒ Object
Retrieves a user’s current Do Not Disturb status.
-
#dnd_setSnooze(options = {}) ⇒ Object
Turns on Do Not Disturb mode for the current user, or changes its duration.
-
#dnd_teamInfo(options = {}) ⇒ Object
Retrieves the Do Not Disturb status for users on a team.
Instance Method Details
#dnd_endDnd(options = {}) ⇒ Object
Ends the current user’s Do Not Disturb session immediately.
12 13 14 |
# File 'lib/slack/endpoint/dnd.rb', line 12 def dnd_endDnd(={}) post("dnd.endDnd", ) end |
#dnd_endSnooze(options = {}) ⇒ Object
Ends the current user’s snooze mode immediately.
22 23 24 |
# File 'lib/slack/endpoint/dnd.rb', line 22 def dnd_endSnooze(={}) post("dnd.endSnooze", ) end |
#dnd_info(options = {}) ⇒ Object
Retrieves a user’s current Do Not Disturb status.
34 35 36 |
# File 'lib/slack/endpoint/dnd.rb', line 34 def dnd_info(={}) post("dnd.info", ) end |
#dnd_setSnooze(options = {}) ⇒ Object
Turns on Do Not Disturb mode for the current user, or changes its duration.
46 47 48 49 |
# File 'lib/slack/endpoint/dnd.rb', line 46 def dnd_setSnooze(={}) throw ArgumentError.new("Required arguments :num_minutes missing") if [:num_minutes].nil? post("dnd.setSnooze", ) end |
#dnd_teamInfo(options = {}) ⇒ Object
Retrieves the Do Not Disturb status for users on a team.
59 60 61 |
# File 'lib/slack/endpoint/dnd.rb', line 59 def dnd_teamInfo(={}) post("dnd.teamInfo", ) end |