UNPKG

@fnlb-project/fnbr

Version:

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

27 lines (26 loc) 1.06 kB
import BasePartyJoinRequest from './BasePartyJoinRequest'; import type ClientUser from '../user/ClientUser'; import type Friend from '../friend/Friend'; import type Client from '../../Client'; /** * Represents an incoming party join request */ declare class ReceivedPartyJoinRequest extends BasePartyJoinRequest { receiver: ClientUser; sender: Friend; /** * @param client The main client * @param sender The user who requested to join the party * @param receiver The user who received the join request * @param data The party confirmation data */ constructor(client: Client, sender: Friend, receiver: ClientUser, data: any); /** * Accepts the join request. If it expired, a normal invite will be sent * @throws {PartyAlreadyJoinedError} The user is already a member of this party * @throws {PartyMaxSizeReachedError} The party reached its max size * @throws {EpicgamesAPIError} */ accept(): Promise<import("./SentPartyInvitation").default>; } export default ReceivedPartyJoinRequest;