Sha256: 6e5fb8937201b084e424e656ef5ff960cc89415660a205f4606676cbe87f306d

Contents?: true

Size: 500 Bytes

Versions: 1

Compression:

Stored size: 500 Bytes

Contents

module Slack
  module RealTime
    module EventHandlers
      module ChannelDeleted
        # A team channel was deleted.
        # @see https://api.slack.com/events/channel_deleted
        # @see https://github.com/dblock/slack-api-ref/blob/master/events/channel_deleted.json
        def self.call(client, data)
          client.channels.delete(data.channel)
        end
      end
    end
  end
end

Slack::RealTime::Client.events['channel_deleted'] = Slack::RealTime::EventHandlers::ChannelDeleted

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