slack-sdk
slack-sdk copied to clipboard
$guzzle request ->isOkay() doesnt exist anymore
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