function fetchMessage(string $id) {
        return (new \React\Promise\Promise(function (callable $resolve, callable $reject) use ($id) {
            $this->client->apimanager()->endpoints->channel->getChannelMessage($this->id, $id)->done(function ($data) use ($resolve) {
                $message = $this->_createMessage($data);
                $resolve($message);
            }, $reject);
        }));
    }
function fetchMessage(string $id) {
        return (new \React\Promise\Promise(function (callable $resolve, callable $reject) use ($id) {
            $this->client->apimanager()->endpoints->channel->getChannelMessage($this->id, $id)->done(function ($data) use ($resolve) {
                $message = $this->_createMessage($data);
                $resolve($message);
            }, $reject);
        }));
    }
function fetchMessage ( string $ id ) { return ( new \ React \ Promise \ Promise ( function ( callable $ resolve , callable $ reject ) use ( $ id ) { $ this -> client -> apimanager ( ) -> endpoints -> channel -> getChannelMessage ( $ this -> id , $ id ) -> done ( function ( $ data ) use ( $ resolve ) { $ message = $ this -> _createMessage ( $ data ) ; $ resolve ( $ message ) ; } , $ reject ) ; } ) ) ; }
Fetches a specific message using the ID. Resolves with an instance of Message.
@param string  $id
@return \React\Promise\ExtendedPromiseInterface
@see \CharlotteDunois\Yasmin\Models\Message
Fetches a specific message using the ID . Resolves with an instance of Message .