public function checkForDCA()
    {
        $binaries = [
            'Darwin' => [
                32 => 'dca-v0.1.0-darwin-10.6-386',
                64 => 'dca-v0.1.0-darwin-10.6-amd64',
            ],
            'Linux' => [
                32 => 'dca-v0.1.0-linux-386',
                64 => 'dca-v0.1.0-linux-amd64',
            ],
        ];

        if (array_key_exists(PHP_OS, $binaries)) {
            $binary = realpath(__DIR__.'/../../../bin/'.$binaries[PHP_OS][PHP_INT_SIZE * 8]);

            $this->dca = $binary;

            return true;
        }

        $this->emit('error', [new DCANotFoundException('No DCA binary was found that is compatible with your operating system and arch.')]);

        return false;
    }
public function checkForDCA()
    {
        $binaries = [
            'Darwin' => [
                32 => 'dca-v0.1.0-darwin-10.6-386',
                64 => 'dca-v0.1.0-darwin-10.6-amd64',
            ],
            'Linux' => [
                32 => 'dca-v0.1.0-linux-386',
                64 => 'dca-v0.1.0-linux-amd64',
            ],
        ];

        if (array_key_exists(PHP_OS, $binaries)) {
            $binary = realpath(__DIR__.'/../../../bin/'.$binaries[PHP_OS][PHP_INT_SIZE * 8]);

            $this->dca = $binary;

            return true;
        }

        $this->emit('error', [new DCANotFoundException('No DCA binary was found that is compatible with your operating system and arch.')]);

        return false;
    }
public function checkForDCA ( ) { $ binaries = [ 'Darwin' => [ 32 => 'dca-v0.1.0-darwin-10.6-386' , 64 => 'dca-v0.1.0-darwin-10.6-amd64' , ] , 'Linux' => [ 32 => 'dca-v0.1.0-linux-386' , 64 => 'dca-v0.1.0-linux-amd64' , ] , ] ; if ( array_key_exists ( PHP_OS , $ binaries ) ) { $ binary = realpath ( __DIR__ . '/../../../bin/' . $ binaries [ PHP_OS ] [ PHP_INT_SIZE * 8 ] ) ; $ this -> dca = $ binary ; return true ; } $ this -> emit ( 'error' , [ new DCANotFoundException ( 'No DCA binary was found that is compatible with your operating system and arch.' ) ] ) ; return false ; }
Checks if DCA is installed.

@throws \Discord\Exceptions\DCANotFoundException Thrown when DCA is not found.

@return bool Whether DCA is installed or not.
Checks if DCA is installed .