fnbr
Version:
A library to interact with Epic Games' Fortnite HTTP and XMPP services
44 lines (43 loc) • 1.21 kB
TypeScript
import Base from '../../Base';
import type Client from '../../Client';
import type ClientParty from './ClientParty';
import type User from '../user/User';
/**
* Represents a party member join confirmation request
*/
declare class PartyMemberConfirmation extends Base {
/**
* The party
*/
party: ClientParty;
/**
* The user who requested to join the party
*/
user: User;
/**
* The creation date of the request
*/
createdAt: Date;
/**
* @param client The main client
* @param party The party
* @param user The user who requested to join the party
* @param data The party confirmation data
*/
constructor(client: Client, party: ClientParty, user: User, data: any);
/**
* Whether the join confirmation is still active (can be confirmed / rejected)
*/
get isActive(): boolean;
/**
* Accepts the member join confirmation and makes the member join the party
* @throws {EpicgamesAPIError}
*/
confirm(): Promise<void>;
/**
* Rejects the member join confirmation
* @throws {EpicgamesAPIError}
*/
reject(): Promise<void>;
}
export default PartyMemberConfirmation;