Discord
discord.set_timestamps
Client
Sets the elapsed or remaining time shown on the Discord rich presence activity
Syntax
local status = discord.set_timestamps(start_at, end_at = 0)Parameters
| Type | Name | Description |
|---|---|---|
int | start_at | Offset in seconds from now to start the timer |
int | end_at | Offset in seconds from now to end the timer |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, or false on failure |
Examples
--Start elapsed timer from now
discord.set_timestamps(0)
--Start timer with a 5 minute countdown
discord.set_timestamps(0, 300)