public function getVoiceClient($id)
    {
        if (isset($this->voiceClients[$id])) {
            return \React\Promise\resolve($this->voiceClients[$id]);
        }

        return \React\Promise\reject(new \Exception('Could not find the voice client.'));
    }
public function getVoiceClient($id)
    {
        if (isset($this->voiceClients[$id])) {
            return \React\Promise\resolve($this->voiceClients[$id]);
        }

        return \React\Promise\reject(new \Exception('Could not find the voice client.'));
    }
public function getVoiceClient ( $ id ) { if ( isset ( $ this -> voiceClients [ $ id ] ) ) { return \ React \ Promise \ resolve ( $ this -> voiceClients [ $ id ] ) ; } return \ React \ Promise \ reject ( new \ Exception ( 'Could not find the voice client.' ) ) ; }
Gets a voice client from a guild ID.

@param int $id The guild ID to look up.

@return \React\Promise\Promise
Gets a voice client from a guild ID .