Sha256: 48966b0e19758aaecf67da82dcb486bb5f40c6e3a2777d7e237c6fe950dc0394
Contents?: true
Size: 552 Bytes
Versions: 1
Compression:
Stored size: 552 Bytes
Contents
module Slack module RealTime module EventHandlers module ChannelArchive # A team channel was archived. # @see https://api.slack.com/events/channel_archive # @see https://github.com/dblock/slack-api-ref/blob/master/events/channel_archive.json def self.call(client, data) channel = client.channels[data.channel] channel.is_archived = true if channel end end end end end Slack::RealTime::Client.events['channel_archive'] = Slack::RealTime::EventHandlers::ChannelArchive
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
slack-ruby-client-0.6.0 | lib/slack/real_time/event_handlers/channel_archive.rb |