Parties
The Party API provides a single, platform level party system. Players can stay in the same party even if they are not in the same server or the same game. You can access party information using Platform.Server.Party
and Platform.Client.Party
. You can invite or remove players from a party in Platform.Client.Party
.
Players are always in a party when online. By default, a player will be in a party by themselves.
A player's party can change at any time.
Common Patterns
// Get a user's party
const party = await Platform.party.GetPartyForUserId(player.userId);
if (!party) return; // No party. The user may have no party if they are offline.
// Party data such as members and leader
const members = party.members;
Last updated