Module: Slack::RealTime::EventHandlers::BotChanged

Defined in:
lib/slack/real_time/event_handlers/bot_changed.rb

Class Method Summary collapse

Class Method Details

.call(client, data) ⇒ Object

An integration bot was changed.


8
9
10
11
# File 'lib/slack/real_time/event_handlers/bot_changed.rb', line 8

def self.call(client, data)
  bot = client.bots[data.bot.id]
  bot.merge!(data.bot) if bot
end