src/Channel.php
public function archive()
    {
        return $this->client->apiCall('channels.archive', [
            'channel' => $this->getId(),
        ])->then(function () {
            $this->data['is_archived'] = true;
        });
    }
public function archive()
    {
        return $this->client->apiCall('channels.archive', [
            'channel' => $this->getId(),
        ])->then(function () {
            $this->data['is_archived'] = true;
        });
    }
public function archive ( ) { return $ this -> client -> apiCall ( 'channels.archive' , [ 'channel' => $ this -> getId ( ) , ] ) -> then ( function ( ) { $ this -> data [ 'is_archived' ] = true ; } ) ; }
Archives the channel.

@return \React\Promise\PromiseInterface
Archives the channel .