slack-sdk icon indicating copy to clipboard operation
slack-sdk copied to clipboard

$guzzle request ->isOkay() doesnt exist anymore

Open oakleaf opened this issue 6 years ago • 0 comments

Hello, just wanted to let you know that this doesnt work in Chat

        if ($response->isOkay())
        {
            echo $this->client->config['username'].' ['.$this->channel.']: '.$message.PHP_EOL;
            return true;
        }

Instead, it should be;

        if($response->getError())
        {
            echo '[Error] '.$response->getError().'.'.PHP_EOL;
            return false;
        }
        else
        {
            echo $this->client->config['username'].' ['.$this->channel.']: '.$message.PHP_EOL;
            return true;
        }

Since isOkay doesnt work anymore

oakleaf avatar Aug 17 '18 09:08 oakleaf