diff --git a/src/RealTimeClient.php b/src/RealTimeClient.php index be0480e..73fe544 100644 --- a/src/RealTimeClient.php +++ b/src/RealTimeClient.php @@ -254,6 +254,15 @@ public function getDMById($id) return Promise\resolve($this->dms[$id]); } + + /** + * Set new DM + * @param DirectMessageChannel $dm + */ + public function setDM(DirectMessageChannel $dm) + { + $this->dms[ $dm->getId() ] = $dm; + } /** * {@inheritDoc}