Instantiates a new PartyEntity.
The active SDK client instance.
The raw party data from the API.
Adds a user to this party.
The ID of the user to add.
A promise resolving to the updated PartyEntity.
Transfers the leadership of the party to another member.
The ID of the new leader.
A promise resolving to the updated PartyEntity.
Disbands the party completely, removing all members.
A promise resolving when the party is successfully disbanded.
Removes a user from this party. If the party becomes empty, it will be automatically disbanded by the server.
The ID of the user to remove.
A promise resolving to the updated PartyEntity, or null if the party was disbanded.
Represents a group of users (Party) within the matchmaking system. Provides helper methods to manage members and the party state.