Module: Slack::RealTime::EventHandlers::ChannelArchive

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

Class Method Summary collapse

Class Method Details

.call(client, data) ⇒ Object

A team channel was archived.


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

def self.call(client, data)
  channel = client.channels[data.channel]
  channel.is_archived = true if channel
end