Update discord.js

use heartbeatJSON["time"] instead of Date.now()
pull/3719/head
Yasin 8 months ago committed by GitHub
parent 4bf8768493
commit 07d2206a5b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -64,7 +64,7 @@ class Discord extends NotificationProvider {
},
{
name: "Time",
value: `<t:${Math.floor(Date.now()/1000)}:f>`,
value: `<t:${Math.floor((new Date(heartbeatJSON["time"])).getTime() / 1000)}:f>`,
},
{
name: "Error",
@ -99,7 +99,7 @@ class Discord extends NotificationProvider {
},
{
name: "Time",
value: `<t:${Math.floor(Date.now()/1000)}:f>`,
value: `<t:${Math.floor((new Date(heartbeatJSON["time"])).getTime() / 1000)}:f>`,
},
{
name: "Ping",

Loading…
Cancel
Save