Sha256: c77c865bcc662c4b2f3076ba30e864cc18b9943c964b9b9c2c69db6f6a7032a7

Contents?: true

Size: 472 Bytes

Versions: 1

Compression:

Stored size: 472 Bytes

Contents

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

Slack::RealTime::Client.events['im_open'] = Slack::RealTime::EventHandlers::ImOpen

Version data entries

1 entries across 1 versions & 1 rubygems

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