Merge pull request #2157 from Mikkel-T/fix-discord-embed

Improve the URL field in Discord embeds
This commit is contained in:
Louis Lam
2022-12-31 22:41:40 +08:00
committed by GitHub

View File

@@ -91,7 +91,7 @@ class Discord extends NotificationProvider {
},
{
name: monitorJSON["type"] === "push" ? "Service Type" : "Service URL",
value: monitorJSON["type"] === "push" ? "Heartbeat" : address.startsWith("http") ? "[Visit Service](" + address + ")" : address,
value: monitorJSON["type"] === "push" ? "Heartbeat" : address,
},
{
name: "Time (UTC)",