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

Function

setDiscordRichPresenceEndTime

ClientDiscordTrilogy Hub only

Sets the "remaining" timer in the Discord status: Discord counts down to the given moment (e.g. the end of a round). Pass a Unix timestamp in seconds. 0 turns the countdown off.

Syntax

bool setDiscordRichPresenceEndTime(int seconds)

Arguments

secondsint
Unix timestamp of the end in seconds. 0 = no countdown.

Returns

true when the status was passed to the launcher.

Example

setDiscordRichPresenceEndTime(getRealTime().timestamp + 300)

See also