function delete(string $reason = '') {
        return (new \React\Promise\Promise(function (callable $resolve, callable $reject) use ($reason) {
            $this->client->apimanager()->endpoints->invite->deleteInvite($this->code, $reason)->done(function () use ($resolve) {
                $resolve();
            }, $reject);
        }));
    }
function delete(string $reason = '') {
        return (new \React\Promise\Promise(function (callable $resolve, callable $reject) use ($reason) {
            $this->client->apimanager()->endpoints->invite->deleteInvite($this->code, $reason)->done(function () use ($resolve) {
                $resolve();
            }, $reject);
        }));
    }
function delete ( string $ reason = '' ) { return ( new \ React \ Promise \ Promise ( function ( callable $ resolve , callable $ reject ) use ( $ reason ) { $ this -> client -> apimanager ( ) -> endpoints -> invite -> deleteInvite ( $ this -> code , $ reason ) -> done ( function ( ) use ( $ resolve ) { $ resolve ( ) ; } , $ reject ) ; } ) ) ; }
Deletes the invite.
@param string  $reason
@return \React\Promise\ExtendedPromiseInterface
Deletes the invite .