fnbr
Version:
A library to interact with Epic Games' Fortnite HTTP and XMPP services
28 lines (27 loc) • 1.19 kB
TypeScript
import BasePendingFriend from './BasePendingFriend';
import type { PendingFriendData } from '../../../resources/structs';
import type Client from '../../Client';
/**
* Represents an incoming friendship request
*/
declare class IncomingPendingFriend extends BasePendingFriend {
constructor(client: Client, data: PendingFriendData);
/**
* Accepts this incoming pending friend request
* @throws {UserNotFoundError} The user wasn't found
* @throws {DuplicateFriendshipError} The user is already friends with the client
* @throws {InviterFriendshipsLimitExceededError} The client's friendship limit is reached
* @throws {InviteeFriendshipsLimitExceededError} The user's friendship limit is reached
* @throws {InviteeFriendshipSettingsError} The user disabled friend requests
* @throws {EpicgamesAPIError}
*/
accept(): Promise<void>;
/**
* Declines this incoming pending friend request
* @throws {UserNotFoundError} The user wasn't found
* @throws {FriendNotFoundError} The user is not friends with the client
* @throws {EpicgamesAPIError}
*/
decline(): Promise<void>;
}
export default IncomingPendingFriend;