Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated Default:RawSquadAssignments_j to Default:SquadInformation_j #789

Merged
merged 2 commits into from
Nov 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions resources/defaultPartyMeta.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
2 changes: 1 addition & 1 deletion src/structures/party/ClientParty.ts
Original file line number Diff line number Diff line change
@@ -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(),
});
}

10 changes: 8 additions & 2 deletions src/structures/party/ClientPartyMeta.ts
Original file line number Diff line number Diff line change
@@ -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,
},
});
}


Unchanged files with check annotations Beta

import { AuthSessionStoreKey } from '../../resources/enums';
import Base from '../Base';
import UserNotFoundError from '../exceptions/UserNotFoundError';
import EpicgamesAPIError from '../exceptions/EpicgamesAPIError';

Check failure on line 6 in src/managers/ChatManager.ts

GitHub Actions / Test Code (Node 20)

'EpicgamesAPIError' is defined but never used.
import type { ChatMessagePayload } from '../../resources/structs';
// private scope