Skip to main content

ReceivedPartyInvitation

Represents a received party invitation.

Attributes

client
Client
The client instance.
party
Party
The party the invitation belongs to.
net_cl
str
The net_cl received by the sending client.
sender
Friend
The friend that invited you to the party.
created_at
datetime.datetime
The UTC time this invite was created at.

Methods

accept

async def accept() -> ClientParty
Accepts the invitation and joins the party.
A bug within the Fortnite services makes it not possible to join a private party you have been kicked from.
return
ClientParty
The party the client joined by accepting the invitation.
Raises:
  • Forbidden - You attempted to join a private party you’ve been kicked from.
  • PartyError - The client’s net_cl is not compatible with the received net_cl.
  • HTTPException - Something went wrong when accepting the invitation.

decline

async def decline() -> None
Declines the invitation. Raises:
  • HTTPException - Something went wrong when declining the invitation.

SentPartyInvitation

Represents a sent party invitation.

Attributes

client
Client
The client instance.
party
Party
The party the invitation belongs to.
sender
PartyMember
The party member that sent the invite.
receiver
User
The user that the invite was sent to.
created_at
datetime.datetime
The UTC time this invite was created at.

Methods

cancel

async def cancel() -> None
Cancels the invite. The user will see an error message saying something like <user>'s party is private. Raises:
  • Forbidden - Attempted to cancel an invite not sent by the client.
  • HTTPException - Something went wrong while requesting to cancel the invite.

resend

async def resend() -> None
Resends an invite with a new notification popping up for the receiving user. Raises:
  • Forbidden - Attempted to resend an invite not sent by the client.
  • HTTPException - Something went wrong while requesting to resend the invite.

PartyJoinConfirmation

Represents a join confirmation.

Attributes

client
Client
The client instance.
party
ClientParty
The party the user wants to join.
user
User
The user who requested to join the party.
created_at
datetime.datetime
The UTC time of when the join confirmation was received.

Methods

confirm

async def confirm() -> None
Confirms this user.
This call does not guarantee that the player will end up in the client’s party. Always listen to the event_party_member_join() event to ensure that the player in fact joined.
Raises:
  • HTTPException - Something went wrong when confirming this user.

reject

async def reject() -> None
Rejects this user. Raises:
  • HTTPException - Something went wrong when rejecting this user.

PartyJoinRequest

Represents a party join request. These requests are in most cases only received when the bot’s party privacy is set to private.
There is currently no way to reject a join request. The official Fortnite client does this by simply ignoring the request and waiting for it to expire.

Attributes

client
Client
The client instance.
party
ClientParty
The party the user wants to join.
friend
Friend
The friend who requested to join the party.
created_at
datetime.datetime
The UTC timestamp of when this join request was created.
expires_at
datetime.datetime
The UTC timestamp of when this join request will expire. This should always be one minute after its creation.

Methods

accept

async def accept() -> SentPartyInvitation
Accepts a party join request. Accepting this before the request has expired forces the sender to join the party. If not then the sender will receive a regular party invite.
return
SentPartyInvitation
Object representing the sent party invitation.
Raises:
  • PartyError - User is already in your party or the party is full.
  • HTTPException - An error occurred while requesting.