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

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:



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

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