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.
Friend
Represents a friend on Fortnite. Inherits fromFriendBase and UserBase.
Properties
status
str - The friend’s status to the client. E.g. if the friend is friends with the bot it will be ACCEPTED.
incoming
bool - True if this friend was the one to send the friend request else False. Aliased to inbound as well.
inbound
bool - Alias for incoming.
outgoing
bool - True if the bot was the one to send the friend request else False. Aliased to outbound as well.
outbound
bool - Alias for outgoing.
created_at
datetime.datetime - The UTC time of when the friendship was created.
favorite
bool - True if the friend is favorited by ClientUser else False.
nickname
Optional[str] - The friend’s nickname. None if no nickname is set for this friend.
note
Optional[str] - The friend’s note. None if no note is set.
last_presence
Presence - The last presence retrieved by the friend. Might be None if no presence has been received by this friend yet.
last_logout
Optional[datetime.datetime] - The UTC time of the last time this friend logged off. None if this friend has never logged into Fortnite or because the friend was added after the client was started. If the latter is the case, you can fetch the friend’s last logout with fetch_last_logout().
platform
Optional[Platform] - The platform the friend is currently online on. None if the friend is offline.
Methods
is_online()
bool - True if the friend is currently online else False.
wait_until_online()
wait_until_offline()
fetch_last_logout()
HTTPException- An error occurred while requesting.
Optional[datetime.datetime] - The last UTC datetime of this friend’s last logout. Could be None if the friend has never logged into Fortnite.
fetch_mutual_friends()
HTTPException- An error occurred while requesting.
List[Friend] - A list of friends you and this friend have in common.
set_nickname(nickname)
nickname(str) - The nickname you want to set. Min length:3, Max length:16.
ValueError- The nickname contains too few/many characters or contains invalid characters.HTTPException- An error occurred while requesting.
remove_nickname()
HTTPException- An error occurred while requesting.
set_note(note)
note(str) - The note you want to set. Min length:3, Max length:255.
ValueError- The note contains too few/many characters or contains invalid characters.HTTPException- An error occurred while requesting.
remove_note()
HTTPException- An error occurred while requesting.
block()
HTTPException- Something went wrong when trying to block this user.
remove()
HTTPException- Something went wrong when trying to remove this friend.
send(content)
FriendMessage to this friend.
Parameters:
content(str) - The content of the message, up to 256 characters.
ChatError- Content is longer than 256 characters.
join_party()
PartyError- Party was not found.Forbidden- The party you attempted to join was private.HTTPException- Something else went wrong when trying to join the party.
ClientParty - The client’s new party.
invite()
PartyError- Friend is already in your party or the party is full.HTTPException- Something went wrong when trying to invite this friend.
SentPartyInvitation - Object representing the sent party invitation.
request_to_join()
PartyError- You are already a part of this friend’s party.FriendOffline- The friend you requested to join is offline.HTTPException- An error occurred while requesting.
owns_offer(offer_id)
offer_id(str) - The offer ID to check.
InvalidOffer- An invalid/outdated offer_id was passed. Only offers currently in the item shop are valid.HTTPException- An error occurred while requesting.
bool - Whether or not the friend owns the offer.
fetch_avatar()
HTTPException- An error occurred while requesting.
Avatar - The avatar of the friend.