src/Group.php
public function rename($name)
    {
        return $this->client->apiCall('groups.rename', [
            'channel' => $this->getId(),
            'name' => $name,
        ])->then(function () use ($name) {
            $this->data['name'] = $name;
            return $name;
        });
    }
public function rename($name)
    {
        return $this->client->apiCall('groups.rename', [
            'channel' => $this->getId(),
            'name' => $name,
        ])->then(function () use ($name) {
            $this->data['name'] = $name;
            return $name;
        });
    }
public function rename ( $ name ) { return $ this -> client -> apiCall ( 'groups.rename' , [ 'channel' => $ this -> getId ( ) , 'name' => $ name , ] ) -> then ( function ( ) use ( $ name ) { $ this -> data [ 'name' ] = $ name ; return $ name ; } ) ; }
Renames the group.

@param string $name The name to set to.

@return \React\Promise\PromiseInterface
Renames the group .