mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-07-18 23:34:04 +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) {
|
||||
let discorddowndata = {
|
||||
username: discordDisplayName,
|
||||
avatar_url: "https://github.com/louislam/uptime-kuma/raw/master/public/icon.png",
|
||||
embeds: [{
|
||||
title: "❌ Your service " + monitorJSON["name"] + " went down. ❌",
|
||||
color: 16711680,
|
||||
|
@ -74,6 +75,7 @@ class Discord extends NotificationProvider {
|
|||
} else if (heartbeatJSON["status"] === UP) {
|
||||
let discordupdata = {
|
||||
username: discordDisplayName,
|
||||
avatar_url: "https://github.com/louislam/uptime-kuma/raw/master/public/icon.png",
|
||||
embeds: [{
|
||||
title: "✅ Your service " + monitorJSON["name"] + " is up! ✅",
|
||||
color: 65280,
|
||||
|
|
Loading…
Add table
Reference in a new issue