Sha256: eab94a7348a961efa5ea565d20832c4fba7041073caa3b646cf0cf6fb787c0c4

Contents?: true

Size: 481 Bytes

Versions: 1

Compression:

Stored size: 481 Bytes

Contents

module Slack
  module RealTime
    module EventHandlers
      module GroupOpen
        # You opened a group channel.
        # @see https://api.slack.com/events/group_open
        # @see https://github.com/dblock/slack-api-ref/blob/master/events/group_open.json
        def self.call(client, data)
          client.groups[data.channel].is_open = true
        end
      end
    end
  end
end

Slack::RealTime::Client.events['group_open'] = Slack::RealTime::EventHandlers::GroupOpen

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