src/Channel.php
public function setTopic($text)
    {
        return $this->client->apiCall('channels.setTopic', [
            'channel' => $this->getId(),
            'topic' => $text,
        ])->then(function () use ($text) {
            $this->data['topic']['value'] = $text;
            return $text;
        });
    }
public function setTopic($text)
    {
        return $this->client->apiCall('channels.setTopic', [
            'channel' => $this->getId(),
            'topic' => $text,
        ])->then(function () use ($text) {
            $this->data['topic']['value'] = $text;
            return $text;
        });
    }
public function setTopic ( $ text ) { return $ this -> client -> apiCall ( 'channels.setTopic' , [ 'channel' => $ this -> getId ( ) , 'topic' => $ text , ] ) -> then ( function ( ) use ( $ text ) { $ this -> data [ 'topic' ] [ 'value' ] = $ text ; return $ text ; } ) ; }
Sets the channel topic text.

@param string $text The new topic text to set to.

@return \React\Promise\PromiseInterface
Sets the channel topic text .