- Documentation
- Client functions
- setDiscordRichPresenceEndTime
Function
setDiscordRichPresenceEndTime
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)