Module: Slack::Web::Api::Endpoints::Presence

Included in:
Slack::Web::Api::Endpoints
Defined in:
lib/slack/web/api/endpoints/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:



16
17
18
19
# File 'lib/slack/web/api/endpoints/presence.rb', line 16

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