@fnlb-project/fnbr
Version:
A library to interact with Epic Games' Fortnite HTTP and XMPP services
28 lines (27 loc) • 853 B
TypeScript
import BaseFriendMessage from './BaseFriendMessage';
import type Friend from './Friend';
import type Client from '../../Client';
import type { MessageData } from '../../../resources/structs';
/**
* Represents a received friend whisper message
*/
declare class ReceivedFriendMessage extends BaseFriendMessage {
/**
* The message's author
*/
author: Friend;
/**
* @param client The main client
* @param data The message's data
*/
constructor(client: Client, data: MessageData & {
author: Friend;
});
/**
* 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 ReceivedFriendMessage;