Sha256: 531c66d3aec875b61c4963c2231a9ad73eac7d673e630c70387bd76f84a4a239

Contents?: true

Size: 541 Bytes

Versions: 1

Compression:

Stored size: 541 Bytes

Contents

module Slack
  module RealTime
    module EventHandlers
      module GroupArchive
        # A private group was archived.
        # @see https://api.slack.com/events/group_archive
        # @see https://github.com/dblock/slack-api-ref/blob/master/events/group_archive.json
        def self.call(client, data)
          channel = client.groups[data.channel]
          channel.is_archived = true if channel
        end
      end
    end
  end
end

Slack::RealTime::Client.events['group_archive'] = Slack::RealTime::EventHandlers::GroupArchive

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
slack-ruby-client-0.6.0 lib/slack/real_time/event_handlers/group_archive.rb