ClientParty
Represents the ClientUser’s party.Attributes
The client instance.
The party’s ID.
The client’s party member object.
A copied list of the members currently in this party.
The amount of members currently in this party.
The leader of the party.
The currently set privacy of this party.
The currently set region of this party.
True if squad fill is enabled, else False.Methods
send
The content of the message, up to 256 characters.
ChatError- Content is longer than 256 characters or the client is in a party on its own.
edit
A list of coroutines that should be included in the edit.
HTTPException- Something went wrong while editing.
edit_and_keep
A list of partials of coroutines that should be included in the edit.
HTTPException- Something went wrong while editing.
invite
The ID of the user to invite.
Object representing the sent party invitation.
PartyError- User is already in your party or the party is full.Forbidden- The invited user is not friends with the client.HTTPException- Something else went wrong when trying to invite the user.
fetch_invites
A list of all sent invites from the party.
HTTPException- An error occurred while requesting from Fortnite’s services.
set_privacy
The privacy setting to apply.
Forbidden- The client is not the leader of the party.
set_region
The region to use.
Forbidden- The client is not the leader of the party.
set_custom_key
The key to set.
Forbidden- The client is not the leader of the party.
set_fill
What to set the fill status to.
True sets it to ‘Fill’, False sets it to ‘NoFill’.Forbidden- The client is not the leader of the party.
set_max_size
The size to set. Must be more than the current member count, more than or equal to 1 or less than or equal to 16.
Forbidden- The client is not the leader of the party.PartyError- The new size was lower than the current member count.PartyError- The new size was not within valid range (1-16).
set_playlist
The playlist ID or island code. Defaults to empty string.
The version of the playlist/island. Defaults to
-1 which is latest.set_squad_assignments
Pre-defined assignments to set. If a member is missing from this dict, they will be automatically added to the final request.
ValueError- Duplicate positions were set in the assignments.Forbidden- You are not the leader of the party.HTTPException- An error occurred while requesting.