Module: Slack::RealTime::EventHandlers::ChannelLeft

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

Class Method Summary collapse

Class Method Details

.call(client, data) ⇒ Object

You left a channel.


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

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