Sha256: f3e336bbc0b7725423069791e35c2ecbd0a060671a3e7b9d33df595f57273ca1

Contents?: true

Size: 515 Bytes

Versions: 1

Compression:

Stored size: 515 Bytes

Contents

module Slack
  module RealTime
    module EventHandlers
      module GroupJoined
        # You joined a private group.
        # @see https://api.slack.com/events/group_joined
        # @see https://github.com/dblock/slack-api-ref/blob/master/events/group_joined.json
        def self.call(client, data)
          client.groups[data.channel.id] = Models::Channel.new(data.channel)
        end
      end
    end
  end
end

Slack::RealTime::Client.events['group_joined'] = Slack::RealTime::EventHandlers::GroupJoined

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