src/Group.php
public function setPurpose($text)
    {
        return $this->client->apiCall('groups.setPurpose', [
            'channel' => $this->getId(),
            'purpose' => $text,
        ])->then(function () use ($text) {
            $this->data['purpose']['value'] = $text;
            return $text;
        });
    }
public function setPurpose($text)
    {
        return $this->client->apiCall('groups.setPurpose', [
            'channel' => $this->getId(),
            'purpose' => $text,
        ])->then(function () use ($text) {
            $this->data['purpose']['value'] = $text;
            return $text;
        });
    }
public function setPurpose ( $ text ) { return $ this -> client -> apiCall ( 'groups.setPurpose' , [ 'channel' => $ this -> getId ( ) , 'purpose' => $ text , ] ) -> then ( function ( ) use ( $ text ) { $ this -> data [ 'purpose' ] [ 'value' ] = $ text ; return $ text ; } ) ; }
Sets the group's purpose text.

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

@return \React\Promise\PromiseInterface
Sets the group s purpose text .