protected function executeWebhook(array $opts, array $files) {
        return $this->client->apimanager()->endpoints->webhook->executeWebhook($this->id, $this->token, $opts, $files, array('wait' => true))->then(function ($data) {
            $channel = $this->client->channels->get($this->channelID);
            if($channel instanceof \CharlotteDunois\Yasmin\Interfaces\TextChannelInterface) {
                return $channel->_createMessage($data);
            }
            
            return $data;
        });
    }
protected function executeWebhook(array $opts, array $files) {
        return $this->client->apimanager()->endpoints->webhook->executeWebhook($this->id, $this->token, $opts, $files, array('wait' => true))->then(function ($data) {
            $channel = $this->client->channels->get($this->channelID);
            if($channel instanceof \CharlotteDunois\Yasmin\Interfaces\TextChannelInterface) {
                return $channel->_createMessage($data);
            }
            
            return $data;
        });
    }
protected function executeWebhook ( array $ opts , array $ files ) { return $ this -> client -> apimanager ( ) -> endpoints -> webhook -> executeWebhook ( $ this -> id , $ this -> token , $ opts , $ files , array ( 'wait' => true ) ) -> then ( function ( $ data ) { $ channel = $ this -> client -> channels -> get ( $ this -> channelID ) ; if ( $ channel instanceof \ CharlotteDunois \ Yasmin \ Interfaces \ TextChannelInterface ) { return $ channel -> _createMessage ( $ data ) ; } return $ data ; } ) ; }
Executes the webhook effectively. Resolves with an instance of Message.
@param array  $opts
@param array  $files
@return \React\Promise\ExtendedPromiseInterface
@internal
Executes the webhook effectively . Resolves with an instance of Message .