src/ApiClient.php
public function getChannels()
    {
        return $this->apiCall('channels.list')->then(function ($response) {
            $channels = [];
            foreach ($response['channels'] as $channel) {
                $channels[] = new Channel($this, $channel);
            }
            return $channels;
        });
    }
public function getChannels()
    {
        return $this->apiCall('channels.list')->then(function ($response) {
            $channels = [];
            foreach ($response['channels'] as $channel) {
                $channels[] = new Channel($this, $channel);
            }
            return $channels;
        });
    }
public function getChannels ( ) { return $ this -> apiCall ( 'channels.list' ) -> then ( function ( $ response ) { $ channels = [ ] ; foreach ( $ response [ 'channels' ] as $ channel ) { $ channels [ ] = new Channel ( $ this , $ channel ) ; } return $ channels ; } ) ; }
Gets all channels in the team.

@return \React\Promise\PromiseInterface
Gets all channels in the team .