mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-07-19 15:44:02 +02:00
Add avatar_url to discord messages
This commit is contained in:
parent
8d710e217a
commit
a5ee6cd62c
1 changed files with 2 additions and 0 deletions
|
@ -37,6 +37,7 @@ class Discord extends NotificationProvider {
|
||||||
if (heartbeatJSON["status"] === DOWN) {
|
if (heartbeatJSON["status"] === DOWN) {
|
||||||
let discorddowndata = {
|
let discorddowndata = {
|
||||||
username: discordDisplayName,
|
username: discordDisplayName,
|
||||||
|
avatar_url: "https://github.com/louislam/uptime-kuma/raw/master/public/icon.png",
|
||||||
embeds: [{
|
embeds: [{
|
||||||
title: "❌ Your service " + monitorJSON["name"] + " went down. ❌",
|
title: "❌ Your service " + monitorJSON["name"] + " went down. ❌",
|
||||||
color: 16711680,
|
color: 16711680,
|
||||||
|
@ -74,6 +75,7 @@ class Discord extends NotificationProvider {
|
||||||
} else if (heartbeatJSON["status"] === UP) {
|
} else if (heartbeatJSON["status"] === UP) {
|
||||||
let discordupdata = {
|
let discordupdata = {
|
||||||
username: discordDisplayName,
|
username: discordDisplayName,
|
||||||
|
avatar_url: "https://github.com/louislam/uptime-kuma/raw/master/public/icon.png",
|
||||||
embeds: [{
|
embeds: [{
|
||||||
title: "✅ Your service " + monitorJSON["name"] + " is up! ✅",
|
title: "✅ Your service " + monitorJSON["name"] + " is up! ✅",
|
||||||
color: 65280,
|
color: 65280,
|
||||||
|
|
Loading…
Add table
Reference in a new issue