Module: Slack::RealTime::EventHandlers::ChannelRename

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

Class Method Summary collapse

Class Method Details

.call(client, data) ⇒ Object

A team channel was renamed.


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

def self.call(client, data)
  channel = client.channels[data.channel.id]
  channel.name = data.channel.name if channel
end