Documentation Index
Fetch the complete documentation index at: https://mintlify.com/xmistt/rebootpy/llms.txt
Use this file to discover all available pages before exploring further.
Overview
TheClient class represents the full-featured client connected to Fortnite and EpicGames’ services. It extends BasicClient with support for:
- Parties and party management
- Friends and friendship management
- XMPP messaging
- Presence and status updates
- Real-time events
Constructor
The authentication method to use. See Authentication for available methods.
The connector to use for HTTP connection pooling.
The connector to use for websocket connection pooling.
The status message sent with presence to friends. Supports variables:
{party_size}- Number of players in the party{party_max_size}- Maximum party size{current_playlist}- Current playlist name (e.g., “Battle Royale”)
The away status for the client’s presence.
The platform to display as the client’s source.
The current net CL used by Fortnite. Defaults to empty string (recommended).
The party version to use. Determines party compatibility.
The default configuration used when creating parties.
The default party member configuration.
Configuration for HTTP retries.
The Fortnite build version string.
The OS version string for the user agent.
The host for Fortnite’s XMPP services.
The domain for Fortnite’s XMPP services.
The port for Fortnite’s XMPP services.
Whether to cache User objects. Disable for programs with many users.
Whether to kill other existing sessions on login.
Whether to fetch user data during event processing. Disabling may help with rate limits but some user attributes may be
None.Whether to wait for party member metadata before dispatching events.
Whether to leave the current party on shutdown.
Attributes
The user the client is logged in as.
The party the client is currently connected to.
List of the client’s friends.
The number of friends the client has.
List of all pending friend requests (incoming and outgoing).
The total number of pending friends.
List of incoming pending friend requests.
The number of incoming pending friend requests.
List of outgoing pending friend requests.
The number of outgoing pending friend requests.
List of blocked users.
The number of blocked users.
List of last presences from currently online friends.
Methods
run
This method handles
KeyboardInterrupt gracefully and closes the client automatically.AuthException- Invalid credentials or authentication failureHTTPException- Request error during login
start
Whether to dispatch the
ready event when ready.AuthException- Invalid credentials or authentication failureHTTPException- Request error during login
close
Whether to close the HTTP client session.
Whether to dispatch the close event.
HTTPException- Error during logout
join_party
The ID of the party to join.
The party that was joined.
PartyError- Already a member of this partyNotFound- Party not foundPartyIsFull- Party is fullForbidden- Not allowed to join (private or kicked)HTTPException- Request error
set_presence
The status message to set.
The away status to use.
TypeError- Status is not a string
accept_friend
The ID of the user to accept.
The newly added friend.
NotFound- User does not existDuplicateFriendship- Already friendsFriendshipRequestAlreadySent- Request already sentForbidden- Not allowed due to user settingsHTTPException- Request error
get_friend
The ID of the friend.
The friend if found, else
None.get_pending_friend
The ID of the pending friend.
The pending friend if found, else
None.get_incoming_pending_friend
The ID of the incoming pending friend.
The incoming pending friend if found, else
None.get_outgoing_pending_friend
The ID of the outgoing pending friend.
The outgoing pending friend if found, else
None.get_blocked_user
The ID of the blocked user.
The blocked user if found, else
None.get_presence
The ID of the friend.
The presence if found, else
None.has_friend
The ID of the user to check.
True if friends, else False.is_pending
The ID of the user to check.
True if pending friend, else False.is_blocked
The ID of the user to check.
True if blocked, else False.Inherited Methods
TheClient class inherits all methods from BasicClient, including:
- User fetching methods (
fetch_user,fetch_users, etc.) - Stats methods (
fetch_br_stats,fetch_ranked_stats, etc.) - Friend management (
add_friend,remove_or_decline_friend, etc.) - Block management (
block_user,unblock_user,fetch_blocklist) - Event handling (
event,wait_for,add_event_handler, etc.) - Store and news methods (
fetch_item_shop,fetch_br_news, etc.)