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

Commit

Permalink
Merge pull request #11 from rb-cohen/patch-1
Browse files Browse the repository at this point in the history
Fix getting DM channel by user ID
  • Loading branch information
sagebind committed Nov 28, 2015
2 parents e0d4615 + caecadd commit 5b27700
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 5b27700

Please sign in to comment.