$addTimestamp

Adds a timestamp to the embed.

Usage

$addTimestamp[index;ms]

This function has two params.

Param
Description
Type
Required

index

Index of the embed to add this timestamp to.

Integer

Yes

ms

The milliseconds to set the timestamp to (current time by default).

Integer

No

Example

bot.commands.add({
  type: "basicCommand",
  name: "example",
  code: `$description[1;This embed has a timestamp!]
$addTimestamp[1]`
})
Result

Last updated

Was this helpful?