Skip to content
This repository has been archived by the owner on Jun 4, 2018. It is now read-only.

Commit

Permalink
Update ApiClient.php
Browse files Browse the repository at this point in the history
The ID of the DMChannel is contained within $response['channel']['id'] not $response['channel'] I think.
  • Loading branch information
arronwoods committed Nov 27, 2015
1 parent e0d4615 commit caecadd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ApiClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
});
}

Expand Down

0 comments on commit caecadd

Please sign in to comment.