UNPKG

@fnlb-project/fnbr

Version:

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

34 lines (33 loc) 1.27 kB
import BasePartyInvitation from './BasePartyInvitation'; import type ClientUser from '../user/ClientUser'; import type Friend from '../friend/Friend'; import type Client from '../../Client'; import type Party from './Party'; import type ClientParty from './ClientParty'; /** * Represents a recieved party invitation */ declare class ReceivedPartyInvitation extends BasePartyInvitation { sender: Friend; receiver: ClientUser; /** * @param client The main client * @param party The party this invitation belongs to * @param sender The friend (or the client user) who sent this invitation * @param receiver The friend (or the client user) who received this invitation * @param data The invitation data */ constructor(client: Client, party: Party | ClientParty, sender: Friend, receiver: ClientUser, data: any); /** * Accepts this invitation * @throws {PartyInvitationExpiredError} The invitation already got accepted or declined * @throws {EpicgamesAPIError} */ accept(): Promise<void>; /** * Declines this invitation * @throws {PartyInvitationExpiredError} The invitation already got accepted or declined */ decline(): Promise<void>; } export default ReceivedPartyInvitation;