@fnlb-project/fnbr
Version:
A library to interact with Epic Games' Fortnite HTTP and XMPP services
33 lines (32 loc) • 961 B
TypeScript
import BaseMessage from '../BaseMessage';
import type ClientUser from '../user/ClientUser';
import type Friend from './Friend';
import type Client from '../../Client';
import type { MessageData } from '../../../resources/structs';
/**
* Represents a friend whisper message
*/
declare class BaseFriendMessage extends BaseMessage {
/**
* The message's content
*/
content: string;
/**
* The message's author
*/
author: Friend | ClientUser;
/**
* @param client The main client
* @param data The message's data
*/
constructor(client: Client, data: MessageData & {
author: Friend | ClientUser;
});
/**
* 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: string): Promise<import("./SentFriendMessage").default>;
}
export default BaseFriendMessage;