function fetchMessages(array $options = array()) {
        return (new \React\Promise\Promise(function (callable $resolve, callable $reject) use ($options) {
            $this->client->apimanager()->endpoints->channel->getChannelMessages($this->id, $options)->done(function ($data) use ($resolve) {
                $collect = new \CharlotteDunois\Collect\Collection();
                
                foreach($data as $m) {
                    $message = $this->_createMessage($m);
                    $collect->set($message->id, $message);
                }
                
                $resolve($collect);
            }, $reject);
        }));
    }
function fetchMessages(array $options = array()) {
        return (new \React\Promise\Promise(function (callable $resolve, callable $reject) use ($options) {
            $this->client->apimanager()->endpoints->channel->getChannelMessages($this->id, $options)->done(function ($data) use ($resolve) {
                $collect = new \CharlotteDunois\Collect\Collection();
                
                foreach($data as $m) {
                    $message = $this->_createMessage($m);
                    $collect->set($message->id, $message);
                }
                
                $resolve($collect);
            }, $reject);
        }));
    }
function fetchMessages ( array $ options = array ( ) ) { return ( new \ React \ Promise \ Promise ( function ( callable $ resolve , callable $ reject ) use ( $ options ) { $ this -> client -> apimanager ( ) -> endpoints -> channel -> getChannelMessages ( $ this -> id , $ options ) -> done ( function ( $ data ) use ( $ resolve ) { $ collect = new \ CharlotteDunois \ Collect \ Collection ( ) ; foreach ( $ data as $ m ) { $ message = $ this -> _createMessage ( $ m ) ; $ collect -> set ( $ message -> id , $ message ) ; } $ resolve ( $ collect ) ; } , $ reject ) ; } ) ) ; }
Fetches messages of this channel. Resolves with a Collection of Message instances, mapped by their ID.

Options are as following:

```
array(
'after' => string, (message ID)
'around' => string, (message ID)
'before' => string, (message ID)
'limit' => int, (1-100, defaults to 50)
)
```

@param array  $options
@return \React\Promise\ExtendedPromiseInterface
@see \CharlotteDunois\Yasmin\Models\Message
Fetches messages of this channel . Resolves with a Collection of Message instances mapped by their ID .