diff --git a/Slack/Client/Actions/UsersList.php b/Slack/Client/Actions/UsersList.php index 815bd94..3519603 100644 --- a/Slack/Client/Actions/UsersList.php +++ b/Slack/Client/Actions/UsersList.php @@ -61,7 +61,7 @@ public function parseResponse(array $response) 'name' => $user['name'], 'deleted' => (bool)$user['deleted'], 'real_name' => $user['profile']['real_name'], - 'email' => $user['profile']['email'], + 'email' => isset($user['profile']['email']) ? $user['profile']['email'] : null, 'is_bot' => (bool)$user['is_bot'], 'presence' => isset($user['presence']) ? $user['presence'] : null ];