ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client functions
  3. setDiscordRichPresencePartySize

Function

setDiscordRichPresencePartySize

ClientDiscordTrilogy Hub only

Sets the party size in the Discord status, shown as "(2 of 4)", e.g. the number of people in a team or mission. By default the launcher shows the server's player count; 0, 0 restores that. The size must be at least 1 and no more than the maximum.

Syntax

bool setDiscordRichPresencePartySize(int size, int max)

Arguments

sizeint
How many there are now (1 to max).
maxint
The maximum. 0 = the server's default player count.

Returns

true on success, false for invalid values.

Example

setDiscordRichPresencePartySize(3, 4)

See also