Set topic on channel.
        Users should only rely on the topic actually being changed when receiving an on_topic_change callback.
505940
async def set_topic(self, channel, topic):
        
        if not self.is_channel(channel):
            raise ValueError('Not a channel: {}'.format(channel))
        elif not self.in_channel(channel):
            raise NotInChannel(channel)

        await self.rawmsg('TOPIC', channel, topic)
1195698
def publish(self, topic, *args, **kwargs):
        
        return self._async_session.publish(topic, *args, **kwargs)
1158011
def _set_rabbitmq_channel(self, channel):
        
        setattr(self.application.attributes, self.CHANNEL, channel)
645531
public function setTopic($channel, $newtopic, $priority = SMARTIRC_MEDIUM)
    {
        $this->send('TOPIC '.$channel.' :'.$newtopic, $priority);
        return $this;
    }
178955
def set_will(topic, payload, retain = false, qos = 0)
      self.will_topic = topic
      self.will_payload = payload
      self.will_retain = retain
      self.will_qos = qos
    end
856781
def subscribe(topic_name, topic_type, &callback)
      sub = Subscriber.new(@node_name,
                           resolve_name(topic_name),
                           topic_type,
                           callback)
      @manager.add_subscriber(sub)
      trap_signals
      sub
    end
1295938
def set_channel_created(self, channel_link, channel_id):
        
        self.channel_link = channel_link
        self.channel_id = channel_id
        self.__record_progress(Status.PUBLISH_CHANNEL if config.PUBLISH else Status.DONE)
1354072
def update_channel(self, channel):
        

        data = {'channels': channel}
        return super(ApiInterfaceRequest, self).put('api/v3/channel/', data)
588201
def empty_channel(self, topic, channel):
        """"""
        nsq.assert_valid_topic_name(topic)
        nsq.assert_valid_channel_name(channel)
        return self._request('POST', '/channel/empty',
                             fields={'topic': topic, 'channel': channel})
561411
def topic=(new_topic)
      if new_topic.size > @bot.irc.isupport["TOPICLEN"] && @bot.strict?
        raise Exceptions::TopicTooLong, new_topic
      end

      @bot.irc.send "TOPIC #@name :#{new_topic}"
    end
601009
def started(topic, event)
      subscribers_for(topic).each{ |subscriber| subscriber.started(event) }
    end
1067800
def subscribe(self, topic, channel):
        """"""
        self.send(nsq.subscribe(topic, channel))
1001014
def topic(self, channel, topic=None):
        """"""
        if topic:
            channel += ' :' + topic
        self.send_line('TOPIC %s' % channel)
467807
def set_topic(self, channel_name, topic):
        
        channel_id = self.get_channel_id(channel_name)
        self.params.update({
            'channel': channel_id,
            'topic': topic,
            })
        return FromUrl('https://slack.com/api/channels.setTopic', self._requests)(data=self.params).post()
1350568
def set_mute(self, enable):
        """"""
        data = '1' if enable else '0'
        params = ('<InstanceID>0</InstanceID><Channel>Master</Channel>'
                  '<DesiredMute>{}</DesiredMute>').format(data)
        self.soap_request(URL_CONTROL_DMR, URN_RENDERING_CONTROL,
                          'SetMute', params)
1312052
def update_channel(data)
      channel = Channel.new(data, self)
      old_channel = @channels[channel.id]
      return unless old_channel

      old_channel.update_from(channel)
    end
472712
def channels(self, topic):
        """"""
        nsq.assert_valid_topic_name(topic)
        return self._request('GET', '/channels', fields={'topic': topic})