Sha256: 74db1efa8f9d2e4152190bd43d55292d890238b50f618bc299d0bdbf9e4da4c1

Contents?: true

Size: 547 Bytes

Versions: 1

Compression:

Stored size: 547 Bytes

Contents

module Slack
  module RealTime
    module EventHandlers
      module TeamDomainChange
        # The team domain has changed.
        # @see https://api.slack.com/events/team_domain_change
        # @see https://github.com/dblock/slack-api-ref/blob/master/events/team_domain_change.json
        def self.call(client, data)
          client.team.url = data.url
          client.team.domain = data.domain
        end
      end
    end
  end
end

Slack::RealTime::Client.events['team_domain_change'] = Slack::RealTime::EventHandlers::TeamDomainChange

Version data entries

1 entries across 1 versions & 1 rubygems

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