Sha256: ed448ba9597816e19497fe89f66bfb541dc726f16dea21bebcbcbfdcdae011d8
Contents?: true
Size: 544 Bytes
Versions: 1
Compression:
Stored size: 544 Bytes
Contents
module Slack module RealTime module EventHandlers module GroupRename # A private group was renamed. # @see https://api.slack.com/events/group_rename # @see https://github.com/dblock/slack-api-ref/blob/master/events/group_rename.json def self.call(client, data) channel = client.groups[data.channel.id] channel.name = data.channel.name if channel end end end end end Slack::RealTime::Client.events['group_rename'] = Slack::RealTime::EventHandlers::GroupRename
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
slack-ruby-client-0.6.0 | lib/slack/real_time/event_handlers/group_rename.rb |