mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-08 20:03:02 +08:00
Merge pull request #393 from Revyn112/master
add possibility to have a prefixMessage in discord notification before the embed
This commit is contained in:
@@ -62,6 +62,11 @@ class Discord extends NotificationProvider {
|
||||
],
|
||||
}],
|
||||
}
|
||||
|
||||
if (notification.discordPrefixMessage) {
|
||||
discorddowndata.content = notification.discordPrefixMessage;
|
||||
}
|
||||
|
||||
await axios.post(notification.discordWebhookUrl, discorddowndata)
|
||||
return okMsg;
|
||||
|
||||
@@ -92,6 +97,11 @@ class Discord extends NotificationProvider {
|
||||
],
|
||||
}],
|
||||
}
|
||||
|
||||
if (notification.discordPrefixMessage) {
|
||||
discordupdata.content = notification.discordPrefixMessage;
|
||||
}
|
||||
|
||||
await axios.post(notification.discordWebhookUrl, discordupdata)
|
||||
return okMsg;
|
||||
}
|
||||
|
Reference in New Issue
Block a user