Functionalities
Other
$creationTimestamp
Similiar to `$creationTime` however, bot returns the time in milliseconds for extremely accurate comparisons and checks and more.

FUNCTION USAGE

  • $creationTimestamp[ID]
  • $creationTimestamp[ID;user]
  • $creationTimestamp[ID;member]

Properties:

ID - The id of the user, role, guild or channel. user - How long ago the user was created. If this field exists, 1st field must be an ID of a discord user/bot. member - How long ago the user became a member of the server. If this field exists, 1st field must be an ID of a discord user/bot.
The lower the number = older the ID
This function sends the raw timestamp of the defined ID.

Example 1: Returns the raw timestamp of the ID in milliseconds.

1
bot.Command({
2
name: "create",
3
code: `
4
$creationTimestamp[$message[]]
5
`
6
})
Copied!

Example 2: Returns the raw timestamp of when the user was created.

1
bot.Command({
2
name: "creation",
3
code: `
4
$creationTimestamp[$mentioned[1;yes];user]
5
`
6
})
7
Copied!

Example 3: Returns the raw timestamp of when the user became a member of the guild.

1
bot.Command({
2
name: "creation",
3
code: `
4
$creationTimestamp[$mentioned[1;yes];member]
5
`
6
})
7
Copied!

Example 4: Usage = ?create userID1 userID2

Heavy comparison check to see who's user account is older.
1
bot.Command({
2
name: "creation",
3
code: `
4
$username[$message[2]] account is older than $username[message[1]]
5
6
$username[message[1]] - $creationTime[message[1]]($creationTimestamp[message[1]])
7
$username[$message[2]] - $creationTime[$message[2]]($creationTimestamp[$message[2]])
8
9
10
$onlyIf[$creationTimestamp[message[1]]>=$creationTimestamp[$message[2]];
11
$username[message[1]] account is older than $username[$message[2]]
12
13
$username[message[1]] - $creationTime[message[1]]($creationTimestamp[message[1]])
14
$username[$message[2]] - $creationTime[$message[2]]($creationTimestamp[$message[2]])]
15
`
16
})
Copied!
Last modified 5mo ago
Copy link
Contents
Properties: