UNPKG

@fnlb-project/fnbr

Version:

A library to interact with Epic Games' Fortnite HTTP and XMPP services

27 lines 886 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const BaseFriendMessage_1 = tslib_1.__importDefault(require("./BaseFriendMessage")); /** * Represents a received friend whisper message */ class ReceivedFriendMessage extends BaseFriendMessage_1.default { /** * @param client The main client * @param data The message's data */ constructor(client, data) { super(client, data); this.author = data.author; } /** * Replies to this whisper message * @param content The message that will be sent * @throws {FriendNotFoundError} The user is not friends with the client */ reply(content) { return this.client.friend.sendMessage(this.author.id, content); } } exports.default = ReceivedFriendMessage; //# sourceMappingURL=ReceivedFriendMessage.js.map