Sha256: 2a75253eb757c9e8a77e80ba405bef59819edd5532cc6a1d21c30de370b88000
Contents?: true
Size: 696 Bytes
Versions: 1
Compression:
Stored size: 696 Bytes
Contents
module Slack module RealTime module EventHandlers module ChannelJoined # You joined a channel. # @see https://api.slack.com/events/channel_joined # @see https://github.com/dblock/slack-api-ref/blob/master/events/channel_joined.json def self.call(client, data) channel_id = data.channel.id channel = client.channels[channel_id] if channel channel.merge!(data.channel) else client.channels[channel_id] = Models::Channel.new(data.channel) end end end end end end Slack::RealTime::Client.events['channel_joined'] = Slack::RealTime::EventHandlers::ChannelJoined
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
slack-ruby-client-0.6.0 | lib/slack/real_time/event_handlers/channel_joined.rb |