UNPKG

@fnlb-project/fnbr

Version:

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

28 lines 885 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const BaseMessage_1 = tslib_1.__importDefault(require("../BaseMessage")); /** * Represents a friend whisper message */ class BaseFriendMessage extends BaseMessage_1.default { /** * @param client The main client * @param data The message's data */ constructor(client, data) { super(client, data); this.content = data.content; 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 = BaseFriendMessage; //# sourceMappingURL=BaseFriendMessage.js.map