fnbr
Version:
A library to interact with Epic Games' Fortnite HTTP and XMPP services
20 lines • 788 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const BasePartyJoinRequest_1 = tslib_1.__importDefault(require("./BasePartyJoinRequest"));
/**
* Represents an incoming party join request
*/
class ReceivedPartyJoinRequest extends BasePartyJoinRequest_1.default {
/**
* Accepts the join request. If it expired, a normal invite will be sent
* @throws {PartyAlreadyJoinedError} The user is already a member of this party
* @throws {PartyMaxSizeReachedError} The party reached its max size
* @throws {EpicgamesAPIError}
*/
async accept() {
return this.client.invite(this.sender.id);
}
}
exports.default = ReceivedPartyJoinRequest;
//# sourceMappingURL=ReceivedPartyJoinRequest.js.map