Party
Example
const { Launcher } = require('epicgames-client');
const Fortnite = require('epicgames-fortnite-client');
const launcher = new Launcher({
email: 'E-MAIL',
password: 'PASSWORD',
});
(async () => {
if(!await launcher.init() || !await launcher.login()) {
throw new Error('Error while initialize or login process.');
}
const app = await launcher.runGame(Fortnite);
await app.party.setCustomMatchKey('xyz');
})();
Properties
id
The party's id.
me
Your PartyMember
object.
leader
Leader's PartyMember
object.
Methods
leave()
Leaves the party.
invite(accountId)
- Arguments
- accountId - member's account id or
PartyMember
object
- accountId - member's account id or
findMember(member)
- Arguments
- member - member's account id or
PartyMember
object
- member - member's account id or
- Returns: -
PartyMember
object
epicgames-fortnite-client
setCustomMatchKey(key) // only in - Arguments
- key - string, custom match key
epicgames-fortnite-client
setAllowJoinInProgress(allow) // only in - Arguments
- allow - boolean
epicgames-fortnite-client
setPlaylist(regionId, playlistName, tournamentId, eventWindowId) // only in - Arguments
- regionId - string, e.g. 'EU'
- playlistName - string, e.g. 'Playlist_DefaultDuo'
- tournamentId - string, optional
- eventWindowId - string, optional
setPrivacy(privacy)
- Arguments
- privacy - EPartyPrivacy
kick(member)
- Arguments
- member - member's account id or
PartyMember
object
- member - member's account id or
promote(member)
Promote member to leader role.
- Arguments
- member - member's account id or
PartyMember
object
- member - member's account id or
static::lookup(app, id)
Lookups party by id.
- Arguments
- app -
Application
object, e.g.epicgames-fortnite-client
- id - party's id to lookup
- app -
- Returns:
Party
object
static::create(app, config)
Opens new party.
- Arguments
- app -
Application
object, e.g.epicgames-fortnite-client
- config - optional, party's configuration, same as defaultPartyConfig option
- app -
- Returns:
Party
object