Skip to content

Communicator\Party

Kysune edited this page Feb 19, 2019 · 10 revisions

Example of making party

const party = await fortnite.communicator.makeParty({
  typeId: 286331153, // type of party, 286331153 is for Battle Royale
  appId: fortnite.appName,
  buildId: fortnite.buildId,
});

Properties

  • id [Integer]
  • typeId [Integer]
  • accessKey [String] - key needed to join into party
  • password [String]
  • appId [String]
  • buildId [String]
  • leader [String] - leader account's id
  • presencePermissions [Integer]
  • invitePermissions [Integer]
  • flags [Integer]
  • members [Integer]
  • maxMembers [Integer]
  • notAcceptingReason [String]
  • data [Communicator\PartyData]
  • me [Communicator\PartyMember]

Aliases for data

  • partyState [String]
  • privacySettings [Object] - informations about party privacy settings
  • allowJoinInProgress [Boolean]
  • isSquadFill [Boolean] - is squad fill enabled
  • partyIsJoinedInProgress [Boolean]
  • gameSessionId [String]
  • gameSessionKey [String]
  • connectionStarted [Boolean]
  • matchmakingResult [String]
  • matchmakingState [String]
  • playlist [Object] - informations about selected game mode

Methods

invite(jid)

Send invite to player. Returns

findMemberById(accountId)

Finding member by account's id.

askToJoin(jid)

Trying join to player.

exit()

Exiting from party

setPrivacy(privacy, allowFriends)

setPlaylist(playlistName, tournamentId, eventWindowId)

  • playlistName [String]
  • tournamentId [String]
  • eventWindowId [String]