diff --git a/docs/general/changelog.md b/docs/general/changelog.md index a4759820..db0328aa 100644 --- a/docs/general/changelog.md +++ b/docs/general/changelog.md @@ -1,5 +1,18 @@ # Changelog +## 4.1.0 + +### Changes +* Chatting + * Added `Client#chat` as the client's chat manager + * Deprecated `ClientParty#chatBan()` + +### Fixes +* Party Meta + * Fixed a bug that caused party members to be invisible when the client created the party +* Chatting + * Fixed an issue that caused the client to not receive chat messages + ## 4.0.0 ### Additions diff --git a/package-lock.json b/package-lock.json index 6a769daa..25841c49 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@fnlb-project/fnbr", - "version": "4.0.1", + "version": "4.1.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@fnlb-project/fnbr", - "version": "4.0.1", + "version": "4.1.0", "license": "MIT", "dependencies": { "@discordjs/collection": "^2.0.0", diff --git a/package.json b/package.json index c85d14f1..cf8b3240 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@fnlb-project/fnbr", - "version": "4.0.1", + "version": "4.1.0", "description": "A library to interact with Epic Games' Fortnite HTTP and XMPP services", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/resources/defaultPartyMeta.json b/resources/defaultPartyMeta.json index ff2ab879..0c6a8fe2 100644 --- a/resources/defaultPartyMeta.json +++ b/resources/defaultPartyMeta.json @@ -21,7 +21,7 @@ "Default:PlaylistData_j": "{\"PlaylistData\":{\"playlistName\":\"Playlist_DefaultSquad\",\"tournamentId\":\"\",\"eventWindowId\":\"\",\"linkId\":{\"mnemonic\":\"playlist_defaultsquad\",\"version\":-1},\"bGracefullyUpgraded\":false,\"matchmakingRulePreset\":\"RespectParties\"}}", "Default:PrimaryGameSessionId_s": "", "Default:PrivacySettings_j": "{\"PrivacySettings\":{\"partyType\":\"Public\",\"partyInviteRestriction\":\"AnyMember\",\"bOnlyLeaderFriendsCanJoin\":false}}", - "Default:RawSquadAssignments_j": "{\"RawSquadAssignments\":[]}", + "Default:SquadInformation_j": "{\"SquadInformation\":{\"rawSquadAssignments\":[],\"squadData\":[{\"jamTempo\":0,\"jamKey\":0,\"jamMode\":0}]}}", "Default:RegionId_s": "EU", "Default:SelectedIsland_j": "{\"SelectedIsland\":{\"linkId\":{\"mnemonic\":\"playlist_defaultsquad\",\"version\":-1},\"worldId\":{\"iD\":\"\",\"ownerId\":\"INVALID\",\"name\":\"\"},\"sessionId\":\"\",\"joinInfo\":{\"islandJoinability\":\"CanNotBeJoinedOrWatched\",\"bIsWorldJoinable\":false,\"sessionKey\":\"\"}}}", "Default:TileStates_j": "{\"TileStates\":[]}", @@ -35,4 +35,4 @@ "urn:epic:cfg:party-type-id_s": "default", "urn:epic:cfg:presence-perm_s": "Anyone", "VoiceChat:implementation_s": "VivoxVoiceChat" -} \ No newline at end of file +} diff --git a/src/structures/party/ClientParty.ts b/src/structures/party/ClientParty.ts index c3a939c4..8fcce6a5 100644 --- a/src/structures/party/ClientParty.ts +++ b/src/structures/party/ClientParty.ts @@ -248,7 +248,7 @@ class ClientParty extends Party { if (!this.me.isLeader) throw new PartyPermissionError(); await this.sendPatch({ - 'Default:RawSquadAssignments_j': this.meta.refreshSquadAssignments(), + 'Default:SquadInformation_j': this.meta.refreshSquadAssignments(), }); } @@ -266,7 +266,7 @@ class ClientParty extends Party { * @deprecated This feature has been deprecated since epic moved chatting away from xmpp */ // eslint-disable-next-line class-methods-use-this, @typescript-eslint/no-unused-vars - public async chatBan(member: string) { + public async chatBan() { const deprecatedFn = deprecate(() => { }, deprecationNotOverXmppAnymore); return deprecatedFn(); diff --git a/src/structures/party/ClientPartyMeta.ts b/src/structures/party/ClientPartyMeta.ts index 7b1e6e6d..348846d6 100644 --- a/src/structures/party/ClientPartyMeta.ts +++ b/src/structures/party/ClientPartyMeta.ts @@ -52,8 +52,14 @@ class ClientPartyMeta extends PartyMeta { } }); - return this.set('Default:RawSquadAssignments_j', { - RawSquadAssignments: assignments, + const squadInformation = this.get('Default:SquadInformation_j'); + + return this.set('Default:SquadInformation_j', { + ...squadInformation, + SquadInformation: { + ...squadInformation.SquadInformation, + rawSquadAssignments: assignments, + }, }); }