Sha256: 8847f589290927cdbad1e1fb9ae05ad0395c1da98a410667ab0c56cff2dd90a8

Contents?: true

Size: 554 Bytes

Versions: 1

Compression:

Stored size: 554 Bytes

Contents

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

Slack::RealTime::Client.events['group_unarchive'] = Slack::RealTime::EventHandlers::GroupUnarchive

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_unarchive.rb