Slack\RealTimeClient::getDMById PHP Méthode

getDMById() public méthode

{@inheritDoc}
public getDMById ( $id )
    public function getDMById($id)
    {
        if (!$this->connected) {
            return Promise\reject(new ConnectionException('Client not connected. Did you forget to call `connect()`?'));
        }
        if (!isset($this->dms[$id])) {
            return Promise\reject(new ApiException("No DM exists for ID '{$id}'."));
        }
        return Promise\resolve($this->dms[$id]);
    }