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

Commit

Permalink
Merge branch 'master' of github.com:coderstephen/slack-client
Browse files Browse the repository at this point in the history
  • Loading branch information
sagebind committed Dec 15, 2015
2 parents 20059bd + 5b27700 commit 8996cf2
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 8996cf2

Please sign in to comment.