src/ApiClient.php
public function getDMs()
    {
        return $this->apiCall('im.list')->then(function ($response) {
            $dms = [];
            foreach ($response['ims'] as $dm) {
                $dms[] = new DirectMessageChannel($this, $dm);
            }
            return $dms;
        });
    }
public function getDMs()
    {
        return $this->apiCall('im.list')->then(function ($response) {
            $dms = [];
            foreach ($response['ims'] as $dm) {
                $dms[] = new DirectMessageChannel($this, $dm);
            }
            return $dms;
        });
    }
public function getDMs ( ) { return $ this -> apiCall ( 'im.list' ) -> then ( function ( $ response ) { $ dms = [ ] ; foreach ( $ response [ 'ims' ] as $ dm ) { $ dms [ ] = new DirectMessageChannel ( $ this , $ dm ) ; } return $ dms ; } ) ; }
Gets all DMs the authenticated user has.

@return \React\Promise\PromiseInterface
Gets all DMs the authenticated user has .