Module: Slack::RealTime::EventHandlers::GroupLeft

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

Class Method Summary collapse

Class Method Details

.call(client, data) ⇒ Object

You left a private group.


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

def self.call(client, data)
  channel = client.groups[data.channel]
  channel.members.delete(client.self.id) if channel && channel.key?('members')
end