Update notification-provider discord.js

use Discord timestamp format

https://discord.com/developers/docs/reference#message-formatting-formats
pull/3719/head
Yasin 8 months ago committed by GitHub
parent 9f7f7a182e
commit 4bf8768493
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -63,8 +63,8 @@ class Discord extends NotificationProvider {
value: monitorJSON["type"] === "push" ? "Heartbeat" : address,
},
{
name: `Time (${heartbeatJSON["timezone"]})`,
value: heartbeatJSON["localDateTime"],
name: "Time",
value: `<t:${Math.floor(Date.now()/1000)}:f>`,
},
{
name: "Error",
@ -98,8 +98,8 @@ class Discord extends NotificationProvider {
value: monitorJSON["type"] === "push" ? "Heartbeat" : address,
},
{
name: `Time (${heartbeatJSON["timezone"]})`,
value: heartbeatJSON["localDateTime"],
name: "Time",
value: `<t:${Math.floor(Date.now()/1000)}:f>`,
},
{
name: "Ping",

Loading…
Cancel
Save