public function getDMs() { if (!$this->connected) { return Promise\reject(new ConnectionException('Client not connected. Did you forget to call `connect()`?')); } return Promise\resolve(array_values($this->dms)); }