Skip to content

Commit

Permalink
Merge branch 'fnbrjs:main' into stw-news
Browse files Browse the repository at this point in the history
  • Loading branch information
tnfAngel authored Dec 14, 2023
2 parents 0d337ce + a07969e commit 6453d47
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/api examples/fortniteapicom.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const handleCommand = async (m) => {
return;
}

await m.client.party.me.setOutfit(skin.id, undefined, undefined, getCosmeticPath(skin.path));
await m.client.party.me.setOutfit(skin.id, undefined, undefined);
await m.reply(`Set the skin to ${skin.name}!`);
} else if (command === 'emote' || command === 'dance') {
const emote = await fetchCosmetic(args.join(' '), 'emote');
Expand Down
2 changes: 1 addition & 1 deletion docs/api examples/fortniteapiio.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const handleCommand = async (m) => {
return;
}

await m.client.party.me.setOutfit(skin.id, undefined, undefined, getCosmeticPath(skin.path));
await m.client.party.me.setOutfit(skin.id, undefined, undefined);
await m.reply(`Set the skin to ${skin.name}!`);
} else if (command === 'emote' || command === 'dance') {
const emote = await fetchCosmetic(args.join(' '), 'emote');
Expand Down
44 changes: 42 additions & 2 deletions docs/general/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,54 @@
## 4.0.0

### Additions
* *WIP*
* User Cache
* Added a user cache that is disabled by default
* Party
* Added `PartyMember#isSittingOut`
* Added `PartyMember#playlist`
* Added `PartyMember#chatBan()` and `ClientParty#chatBan()` to ban a party member from the party chat
* Login Errors
* Added `AuthenticationMissingError`, `XMPPConnectionError` and `XMPPConnectionTimeoutError` to improve error handling
* Client Config
* Added `ClientOptions#xmppMaxConnectionRetries`
* Added `ClientOptions#disablePartyService`
* Added `ClientSettings#friendOfflineTimeout` to define after how many ms after the last presence was received the client will consider a friend offline
* Auth Clients
* Added `fortniteNewSwitchGameClient` to the list of available clients

### Changes
* Party
* **(Breaking)** `ClientParty#setPlaylist()` no longer accepts a `Playlist` struct
* **(Breaking)** Removed `PartyMember#assistedChallenge`
* Friends
* **(Breaking)** Moved `Client#friends` to `FriendManager#list`
* **(Breaking)** Moved `Client#addFriend()`, `Client#removeFriend()`, `Client#sendFriendMessage()` and `Client#checkFriendOfferOwnership()` to `FriendManager#add()`, `FriendManager#remove()`, `FriendManager#sendMessage()` and `FriendManager#checkOfferOwnership()` respectively
* Users
* **(Breaking)** Moved `Client#getProfile()` to `UserManager#fetch()` and `UserManager#fetchMultiple()`
* **(Breaking)** Moved `Client#blockedUsers` to `UserManager#blocklist`
* **(Breaking)** Moved `Client#blockUser()` and `Client#unblockUser()` to `UserManager#block()` and `UserManager#unblock()` respectively
* **(Breaking)** Moved `Client#searchProfiles()`, `Client#getUserAvatar()`, `Client#getGlobalProfile()` to `UserManager#search()`, `UserManager#fetchAvatar()` (and `UserManager#fetchAvatarMultiple()`) and `UserManager#fetchGlobalProfile()` (and `UserManager#fetchGlobalProfileMultiple()`) respectively
* Tournaments
* **(Breaking)** Moved `Client#getTournaments()`, `Client#getTournamentSessionMetadata()`, `Client#getTournamentWindowResults()`, `Client#getEventTokens()` and `Client#downloadTournamentReplay()` to `TournamentManager#get()`, `TournamentManager#getData()`, `TournamentManager#getSessionMetadata()`, `TournamentManager#getWindowResults()` `TournamentManager#getEventTokens()` and `TournamentManager#downloadReplayCDNFile()` respectively
* STW
* **(Breaking)** Moved `Client#getSTWProfile()`, `Client#getSTWNews()` and `Client#getSTWWorldInfo()` to `STWManager#getProfile()`, `STWManager#getNews()` and `STWManager#getWorldInfo()` respectively
* Enums
* **(Breaking)** Updated the `Playlist` enum to include the currently available playlists
* Structures
* **(Breaking)** Renamed `Playlist` interface to `Island` and updated its properties
* **(Breaking)** `CosmeticsVariantMeta` now has lower-case keys
* Party Meta
* Removed the `path` property from `ClientPartyMember#setOutfit()` as it's no longer needed
* Documentation
* Updated examples

### Fixes
* *WIP*
* Party Meta
* Updated `ClientPartyMember#setOutfit()` to use the new structure
* Added, changed and removed various party meta keys to match what the game uses
* Misc
* Removed some unused GraphQL code
* Minor bug fixes

<hr>

Expand Down

0 comments on commit 6453d47

Please sign in to comment.