Sha256: 90bf8582bad9d7fad6d4986b66a28720d6534113d1b5342e4ad5f40dd7e672cc

Contents?: true

Size: 516 Bytes

Versions: 1

Compression:

Stored size: 516 Bytes

Contents

module Slack
  module RealTime
    module EventHandlers
      module TeamPrefChange
        # A team preference has been updated.
        # @see https://api.slack.com/events/team_pref_change
        # @see https://github.com/dblock/slack-api-ref/blob/master/events/team_pref_change.json
        def self.call(client, data)
          client.team.prefs[data.name] = data.value
        end
      end
    end
  end
end

Slack::RealTime::Client.events['team_pref_change'] = Slack::RealTime::EventHandlers::TeamPrefChange

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