function fetchWebhook() {
        if($this->webhookID === null) {
            throw new \BadMethodCallException('Unable to fetch webhook from a message that was not posted by a webhook');
        }
        
        return (new \React\Promise\Promise(function (callable $resolve, callable $reject) {
            $this->client->apimanager()->endpoints->webhook->getWebhook($this->webhookID)->done(function ($data) use ($resolve) {
                $webhook = new \CharlotteDunois\Yasmin\Models\Webhook($this->client, $data);
                $resolve($webhook);
            }, $reject);
        }));
    }
function fetchWebhook() {
        if($this->webhookID === null) {
            throw new \BadMethodCallException('Unable to fetch webhook from a message that was not posted by a webhook');
        }
        
        return (new \React\Promise\Promise(function (callable $resolve, callable $reject) {
            $this->client->apimanager()->endpoints->webhook->getWebhook($this->webhookID)->done(function ($data) use ($resolve) {
                $webhook = new \CharlotteDunois\Yasmin\Models\Webhook($this->client, $data);
                $resolve($webhook);
            }, $reject);
        }));
    }
function fetchWebhook ( ) { if ( $ this -> webhookID === null ) { throw new \ BadMethodCallException ( 'Unable to fetch webhook from a message that was not posted by a webhook' ) ; } return ( new \ React \ Promise \ Promise ( function ( callable $ resolve , callable $ reject ) { $ this -> client -> apimanager ( ) -> endpoints -> webhook -> getWebhook ( $ this -> webhookID ) -> done ( function ( $ data ) use ( $ resolve ) { $ webhook = new \ CharlotteDunois \ Yasmin \ Models \ Webhook ( $ this -> client , $ data ) ; $ resolve ( $ webhook ) ; } , $ reject ) ; } ) ) ; }
Fetches the webhook used to create this message. Resolves with an instance of Webhook.
@return \React\Promise\ExtendedPromiseInterface
@throws \BadMethodCallException
@see \CharlotteDunois\Yasmin\Models\Webhook
Fetches the webhook used to create this message . Resolves with an instance of Webhook .