Module: Slack::Endpoint::Presence

Included in:
Slack::Endpoint
Defined in:
lib/slack/endpoint/presence.rb

Instance Method Summary collapse

Instance Method Details

#presence_set(options = {}) ⇒ Object

Manually set user presence

Parameters:

  • options (Hash) (defaults to: {})

    a customizable set of options

Options Hash (options):

  • :presence (Object)

    Either ‘active` or `away`

See Also:



14
15
16
17
# File 'lib/slack/endpoint/presence.rb', line 14

def presence_set(options={})
  throw ArgumentError.new("Required arguments :presence missing") if options[:presence].nil?
  post("presence.set", options)
end