fnbr
Version:
A library to interact with Epic Games' Fortnite HTTP and XMPP services
24 lines • 833 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const BasePendingFriend_1 = tslib_1.__importDefault(require("./BasePendingFriend"));
/**
* Represents an outgoing pending friendship request
*/
class OutgoingPendingFriend extends BasePendingFriend_1.default {
constructor(client, data) {
super(client, data);
this.direction = 'OUTGOING';
}
/**
* Cancels this outgoing pending friend request
* @throws {UserNotFoundError} The user wasn't found
* @throws {FriendNotFoundError} The user is not friends with the client
* @throws {EpicgamesAPIError}
*/
async abort() {
return this.client.friend.remove(this.id);
}
}
exports.default = OutgoingPendingFriend;
//# sourceMappingURL=OutgoingPendingFriend.js.map