diff --git a/src/ApiClient.php b/src/ApiClient.php index 3c97359..33a9108 100644 --- a/src/ApiClient.php +++ b/src/ApiClient.php @@ -269,7 +269,7 @@ public function getDMByUserId($id) return $this->apiCall('im.open', [ 'user' => $id, ])->then(function (Payload $response) { - return $this->getDMById($response['channel']); + return $this->getDMById($response['channel']['id']); }); }