You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is especially important if an error has occurred, which happens frequently when the correct channel is not specified. Right now the error is just thrown, but an error callback would be a much more graceful way of handling it.
The text was updated successfully, but these errors were encountered:
$slack = new Maknz\Slack\Client('this-isnot-a-valid-webhook-url', $settings);
$copy = "testing your settings. If you see this message, everything is good to go!";
try {
$test = $slack->send($copy);
}
catch (Exception $e) {
echo $e->getMessage();
die("ERROR");
}
}
`
This code will seem to work without throwing an error and catching....
This is especially important if an error has occurred, which happens frequently when the correct channel is not specified. Right now the error is just thrown, but an error callback would be a much more graceful way of handling it.
The text was updated successfully, but these errors were encountered: