Module: Slack::RealTime::EventHandlers::PresenceChange

Defined in:
lib/slack/real_time/event_handlers/presence_change.rb

Class Method Summary collapse

Class Method Details

.call(client, data) ⇒ Object

A team member's presence changed.


8
9
10
11
# File 'lib/slack/real_time/event_handlers/presence_change.rb', line 8

def self.call(client, data)
  user = client.users[data.user]
  user.presence = data.presence if user
end